-
Notifications
You must be signed in to change notification settings - Fork 89
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
PySD 2.0.0 #299
PySD 2.0.0 #299
Conversation
Clean control vars, now default values are given in a dict. Solve some remaining TODOs related to the initialization of stateful objects after changing initial conditions and caching user input functions.
Hello @enekomartinmartinez! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-11-08 15:39:32 UTC |
My bad that docs didn't work in the building, I need to update an import. |
HI @JamesPHoughton, I have updated setup.py as in the example provided in the previous issue. However, we need to change the RTD configuration to use the "docs" extra_packages. I have no access to modify this configuration in RTD could you manage that or give me access? Thanks :) |
12dd9d6
to
316881a
Compare
316881a
to
9126289
Compare
@JamesPHoughton I was able to solve the RTD issue by adding the readthedocs.yaml file. Now it works fine. |
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.
Changes are great, a few documentation things I noticed. Good to merge when you're ready.
Congratulations!
@@ -361,13 +360,16 @@ def visit_data_definition(self, n, vc): | |||
self.kind = "data" | |||
|
|||
def visit_test_definition(self, n, vc): | |||
# TODO: add test for test |
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.
Are these todo's still open? (and ln 371/2, 399?)
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, this are two features that I didn't add and we have no test that cover this lines.
I tried to add tests for those lines but I don't know how the original files should look like.
Line 371 is quite more complicated as it is related about how the subscripts are defined.
@@ -0,0 +1,132 @@ | |||
{UTF-8} |
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.
Would this model be useful to include in the test-models repo? Not sure if its something other people would find useful?
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.
This model is related to the dependencies dict and multiples dependencies. In fact, it is not run by integration test but used unit_test_pysd.py for testing these multiple dependencies management. I don't think that this will be useful for other projects, as it is just a simple copy of test_subscript_individually_defined_stocks.mdl with some small changes to test the dependencies.
Dependencies dictionary added:
Manage model components:
Several bug fixes (modulo, exponentials)
General cleanup
Improvement of the documentation