Skip to content

Commit

Permalink
ADD: input uids to server
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Dec 13, 2023
1 parent a18b920 commit 331b181
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pdf_agents/startup_scripts/mmm4-kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
@startup_decorator
def startup():
agent.start()
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 331b181

Please sign in to comment.