Skip to content

initializing agent area dictionary correctly when None is provided. #127

Merged
craigpnnl merged 4 commits intodevelopfrom
121-agent_area_none
Jul 12, 2023
Merged

initializing agent area dictionary correctly when None is provided. #127
craigpnnl merged 4 commits intodevelopfrom
121-agent_area_none

Conversation

@poorva1209
Copy link
Copy Markdown
Contributor

@poorva1209 poorva1209 commented Jul 12, 2023

Updated message bus connection to occur at agent initialization
Fixes: #121

Comment thread gridappsd-field-bus-lib/gridappsd/field_interface/agents/agents.py
Comment thread gridappsd-field-bus-lib/gridappsd/field_interface/agents/agents.py
if self.agent_area_dict is not None:
self.switch_area = SwitchArea(self.downstream_message_bus_def.id,
self.connection)
print(self.agent_area_dict)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this or use log with some sort of label

request = {'request_type' : 'get_context',
'modelId': feeder_mrid,
'areaId': area_id}
print("*****************************")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove print make it a log. message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants