-
Notifications
You must be signed in to change notification settings - Fork 136
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
Examples for unstable appear first at GitHub #1156
Comments
One 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 feedback: Is it really caused by the wrong docstring or didn't you read it anyway? If so, should we put something like Possible steps (some may be combined):
Just that I don't forget. A simple implementation of a version check might 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") |
I see, adding assure_solph_version would be really helpful! I just cloned the default branch (which is dev) but had the stable version of OEMOF installed but retrospectively I should've been more scrupulous to check versions. Perhaps, in addition to adding the assure_solph_version function we could improve the read-me when discussing examples a little so it reads something more like this?
And maybe adding a page in the documentation around this in more detail would be useful, including the set up for both stable and dev branches with the properly install and clone commands. |
Also in terms of the other edits I made in the pull request, namely
Are they also versioning issues? |
I didn't see any problems like these in a consistent v0.6 environment, so I think they are. PS: We decided to have an AUA at the dev meeting. If you like to join, you can find it in the oemof calendar. PPS: I shortly mentioned versions in the readme. Thanks for the suggestion. |
Originally posted by @RobSisson in #1155 (comment)
The text was updated successfully, but these errors were encountered: