-
Notifications
You must be signed in to change notification settings - Fork 15
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
Adding PV module unit tests and documentation #79
Conversation
…solar-pysam tried to push to origin solar-pysam but wasn't able to because this branch was behind the remote by a commit
I believe it's best practice for the unit tests to be totally self-contained. At the moment, this test requires the |
Merging develop into local branch to prepare for PR back to NREL develop
assert outputs_init["power"] == 25 | ||
assert outputs_init["irradiance"] == 1000 | ||
|
||
# change simple battery state as if during simulation |
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.
Can we update the comments so that it's more clear what the part of the solar simulation it's testing?
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.
Yes, good idea.
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.
Do you know what the changes to this file were?
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.
It was the ruff formatting (ordering the imported packages alphabetically), but I'm confused as to why these changes are showing up here since I merged develop into my local branch
hercules/py_sims.py
Outdated
@@ -49,6 +49,10 @@ def __init__(self, input_dict): | |||
def get_py_sim(self, py_sim_obj_dict): | |||
if py_sim_obj_dict["py_sim_type"] == "SimpleSolar": | |||
return SimpleSolar(py_sim_obj_dict, self.dt) | |||
|
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.
Is this section in the files twice?
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.
It looks like yes. Maybe this happened when I pulled in changes from develop? Not sure, but I'm fixing it now.
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.
Looks good to me!
You'll notice that |
Addressing Issues #54 and #67
This PR adds unit tests and documentation for the
SolarPySAM
module and corrects/improves some of the variable names.