-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge Gemini changes #84
Conversation
…xed, publications after co-iteration timestep instead of before
PyDSS/helics_interface.py
Outdated
helics.helicsFederateInfoSetCoreInitString(self.fedinfo, f"--federates=1 --networktimeout=60min --timeout=60min --broker_address {self._options['Helics']['Broker']} --port {self._options['Helics']['Broker port']} --maxsize=32768 --slowresponding") | ||
helics.helicsFederateInfoSetFlagOption(self.fedinfo, helics.helics_flag_terminate_on_error, 0) # set terminate_on_error to false | ||
#if 'Broker' in self._options['Helics']: | ||
# helics.helicsFederateInfoSetBroker(self.fedinfo, self._options['Helics']['Broker']) | ||
IP = self._settings.helics.broker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the broker and port are already set in line 86: helics.helicsFederateInfoSetCoreInitString, so likely don't need the next few lines.
PyDSS/helics_interface.py
Outdated
IP = self._settings.helics.broker | ||
Port = self._settings.helics.broker_port | ||
self._logger.info("Connecting to broker @ {}".format(f"{IP}:{Port}" if Port else IP)) | ||
helics.helicsFederateInfoSetCoreInitString(self.fedinfo, f"--federates=1 --networktimeout=60min --timeout=60min --broker_address {self._options['Helics']['Broker']} --port {self._options['Helics']['Broker port']} --maxsize=32768 --slowresponding") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nadiavp This line is actually broken because of the recent changes to the input structures. The original code did not require both broker
and broker_port
. Do we need to keep that behavior?
IP = self._settings.helics.broker | ||
Port = self._settings.helics.broker_port | ||
self._logger.info("Connecting to broker @ {}".format(f"{IP}:{Port}" if Port else IP)) | ||
helics.helicsFederateInfoSetCoreInitString(self.fedinfo, f"--federates=1 --networktimeout=60min --timeout=60min --maxsize=32768 --slowresponding") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AadilLatif Do you have any comments on the changes in this file?
@@ -523,6 +528,11 @@ class HelicsModel(InputsBaseModel): | |||
default=5, | |||
alias="Helics logging level", | |||
) | |||
store_intermediate_values: bool = Field( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nadiavp @AadilLatif Note this field and default value. Let me know if the default should be flipped.
@@ -71,6 +72,9 @@ def GetValue(self, VarName, convert=False): | |||
if convert: | |||
if VarName in self.VARIABLE_OUTPUTS_BY_LIST: | |||
VarValue = VarValue[:self.NumWindings] | |||
if len(VarValue) < self.NumWindings: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AadilLatif Any objections?
1aa7cf2
to
ac965e6
Compare
… helics prints, request time non-iterative if never converges
@AadilLatif This is ready for a final review. You'll want to check the HELICS changes. |
…ward 2 steps at a time, PV objects don't need kvarlimits in dss files
@daniel-thom are we still interested in merging this pull request? |
This is a draft pull request to attempt to merge Gemini-required changes into PyDSS master. More fixes are almost certainly required.
@AadilLatif You will want to be aware of this PR. You're welcome to review now or wait until we've removed the draft label.