-
Notifications
You must be signed in to change notification settings - Fork 137
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
Enabling Examples To Pass on Installation #1155
Conversation
- Edited Flow instances to use nominal_value - Removed duplicated "investment_nonconvex": False, in test_nodes_with_none_exclusion_old_name and test_nodes_with_none_exclusion in test_processing.py
Updated Readme to add poetry install link
Thanks again for your effort. I feel very sorry that we did not provide enough guidance and probably did duplicate work. Rainer already worked through the examples and I think we got them all fixed. If you still found issues, it might be because of problems in the presentation. In fact, the naming |
Ah I see! So my issue was that I was using examples which were for a newer version of OEMOF compared to the version of OEMOF I had installed? |
Yes. The actual issue is that the example still tells (in the docstring) that it is for solph 0.5.x but it is for 0.6.x. Now, I rely on your feedback: Is it really caused by the wrong docstring or didn't you read it anyway? If so, should we put something like Just that I don't forget. A simple implementation would work like this: def assure_solph_version(version_string: str) -> None:
"""
Tests given version string against the version of the presently installed version of solph.
"""
solph_version = solph.__version__[:3]
if solph_version != version_string:
raise (RuntimeError(f"Unsupported version of solph: {solph_version}"))
assure_solph_version("0.6") |
It's cleaner to continue at a separate issue (#1156). I will close this. |
Suggestions and contributions were also made by https://github.com/RainerGaier