-
Notifications
You must be signed in to change notification settings - Fork 13
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
Factor out functions that check input parameters #153
Conversation
I could probably write some tests for the check functions but since we test the input parameters of the analysis functions that use these functions I thought it was not necessary. |
Are we still using |
Yes, we use it within |
Should we have a |
Oh I see how it's used. We might still want to update the docstring, since the default is now |
We can revert and use the keys. I used the renewable_resources list with the hope of getting rid of the dict but I gave up. |
It seems like a step in the right direction, no need to revert in my opinion (up to you though). |
This might be the cleanest way to get rid of a lot of the ugliness in our codebase. Storing the |
e04d7bf
to
fa05af9
Compare
@danielolsen. Is the following:
defined in the |
Yes. |
e194079
to
2952aa4
Compare
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 code looks good, thanks for cleaning this up. If the tests pass once the dependency issue is worked out, I think it's good to go.
763dc58
to
49f1d62
Compare
49f1d62
to
576b361
Compare
Purpose
Factor out functions that check input parameters of analysis functions and gather them in a common module.
What is the code doing
I moved things around to avoid duplicates
Where to look
postreise.analyze.check
module has been created.Time estimate
20min. The tests fail because PR Breakthrough-Energy/PowerSimData#273 need to be merged