From d70e4e7dd0c18c735b97ee1b30dfb39f27761b4c Mon Sep 17 00:00:00 2001 From: "Joel Z. Leibo" Date: Tue, 30 Jul 2024 02:11:53 -0700 Subject: [PATCH] Observation summary component in agent factories now summarizes a time interval that includes the latest timestep. PiperOrigin-RevId: 657500969 Change-Id: I7d20bc0734f30923dcc8d476c21a3862c75347f4 --- concordia/factory/agent/basic_entity_agent__main_role.py | 2 +- concordia/factory/agent/basic_entity_agent__supporting_role.py | 2 +- concordia/factory/agent/rational_entity_agent__main_role.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/concordia/factory/agent/basic_entity_agent__main_role.py b/concordia/factory/agent/basic_entity_agent__main_role.py index 704a8214..5596432b 100644 --- a/concordia/factory/agent/basic_entity_agent__main_role.py +++ b/concordia/factory/agent/basic_entity_agent__main_role.py @@ -78,7 +78,7 @@ def build_agent( model=model, clock_now=clock.now, timeframe_delta_from=datetime.timedelta(hours=4), - timeframe_delta_until=datetime.timedelta(hours=1), + timeframe_delta_until=datetime.timedelta(hours=0), pre_act_key=observation_summary_label, logging_channel=measurements.get_channel('ObservationSummary').on_next, ) diff --git a/concordia/factory/agent/basic_entity_agent__supporting_role.py b/concordia/factory/agent/basic_entity_agent__supporting_role.py index bda68872..53e84279 100644 --- a/concordia/factory/agent/basic_entity_agent__supporting_role.py +++ b/concordia/factory/agent/basic_entity_agent__supporting_role.py @@ -93,7 +93,7 @@ def build_agent( model=model, clock_now=clock.now, timeframe_delta_from=datetime.timedelta(hours=4), - timeframe_delta_until=datetime.timedelta(hours=1), + timeframe_delta_until=datetime.timedelta(hours=0), components={_get_class_name(somatic_state): somatic_state_label}, pre_act_key=observation_summary_label, logging_channel=measurements.get_channel('ObservationSummary').on_next, diff --git a/concordia/factory/agent/rational_entity_agent__main_role.py b/concordia/factory/agent/rational_entity_agent__main_role.py index 253bed6c..0ea5e72a 100644 --- a/concordia/factory/agent/rational_entity_agent__main_role.py +++ b/concordia/factory/agent/rational_entity_agent__main_role.py @@ -83,7 +83,7 @@ def build_agent( model=model, clock_now=clock.now, timeframe_delta_from=datetime.timedelta(hours=4), - timeframe_delta_until=datetime.timedelta(hours=1), + timeframe_delta_until=datetime.timedelta(hours=0), pre_act_key=observation_summary_label, logging_channel=measurements.get_channel('ObservationSummary').on_next, )