Skip to content

Commit

Permalink
FIX: Add loader for historical data
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Dec 13, 2023
1 parent b7dac0b commit 4412752
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bmm_agents/startup_scripts/mmm4_Pt_kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
@startup_decorator
def startup():
agent.start()
# agent.ask_on_tell = True
# agent.add_suggestions_to_queue(1)
path = "/nsls2/data/pdf/shared/config/source/bmm-agents/bmm_agents/startup_scripts/historical_Pt_uids.txt"
with open(path, "r") as f:
uids = []
for line in f:
uids.append(line.strip().strip(",").strip("'"))

agent.tell_agent_by_uid(uids)


@shutdown_decorator
Expand Down

0 comments on commit 4412752

Please sign in to comment.