Skip to content

Commit

Permalink
fix: tell_by uid to use trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Apr 12, 2024
1 parent fd1d9ce commit 937a637
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bmm_agents/startup_scripts/mmm5-tax-day/Pt_KmeansMonarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ def startup():
with open(path, "r") as f:
uids = []
for line in f:
uids.append(line.strip().strip(",").strip("'"))
uid = line.strip().strip(",").strip("'")
if agent.trigger_condition(uid):
uids.append()

agent.element_origins = old_mmm4_origin
agent.tell_agent_by_uid(uids)
Expand Down
4 changes: 3 additions & 1 deletion bmm_agents/startup_scripts/mmm5-tax-day/Pt_kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def startup():
with open(path, "r") as f:
uids = []
for line in f:
uids.append(line.strip().strip(",").strip("'"))
uid = line.strip().strip(",").strip("'")
if agent.trigger_condition(uid):
uids.append()

agent.element_origins = old_mmm4_origin
agent.tell_agent_by_uid(uids)
Expand Down

0 comments on commit 937a637

Please sign in to comment.