-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adjustments regarding the new solph structure #21
Adjustments regarding the new solph structure #21
Conversation
Sorry for taking so long. I'm not ready to approve this yet for two reasons:
|
Ah yeah there is also still a problem thats maybe linked to the network module:
This similar warning actually happens for every components being instantiated in the one way or another. |
You should switch off the SuspiciousUsageWarning. This was a compromise between solph and tabular. For most solph users it is an error if they construct a Source without an output or a Sink without an input. If the user just misspell the respective attribute it was hard to find the bug. So we invented the But it is allowed to construct a Source without an output and add the output later. In solph this is very rare but it is the way you construct nodes in tabular. Therefore, we do not raise an error and we added a specific warning that do not effect other warnings if you switch it off (see Handling of Warnings in the solph docs). |
Hey! We are using tabular in https://github.com/modex-flexmex/oemo-flex/ and wait for it to get working with oemof-solph 0.4.x. Since I am not familiar with the background, I couldn't see what's the progress or what solution is needed. Can we help at some point or take action ourselves? Thank you! |
@uvchik Thanks for the hint with the warning! @unndreay Yeah acutually most of the work has been done. The warning stuff that @uvchik mentioned has to be done. And I guess some final checks. You could help be dealing with the warning Also @gnn wanted to transfer some code from anther dependency to this package which is kind of important. So it would be great if you @gnn would finalize this PR (which is pending for quite a while....) I used the version for some projects already, and I am sure everthing works as intended. |
dfg |
You could try to fix the stuff that causes the checks to fail :-) (if that possible for you) |
It sounds like we should switch off the SuspiciousUsageWarning for oemof.tabular. This should not be too much work - probably somewhere centrally?
Can this be done in a separate PR?
So this branch is already tested in practice. Great! |
With 1922cd9, I switched off the SuspiciousUsageWarnings in the facades module. If you think that it should be switched off at a different place, please correct. I tested it with the example compute.py and could get rid of the warnings. |
We can now test this branch with our model runs for any errors. Will give feedback here. Only remaining thing is the travis check. |
While reviewing, I noticed that commit cb1ce4d (introducing capacity_minimum) seems a bit unrelated to this PR. Wrong branch? |
Yeah, should have been on dev...mh. maybe we can keep it here for now? I do not have time to clean this up. But I would really like to get the next version of oemof-tabular out there, which is working on 0.4 solph |
@gnn can you check this branch as well? so we can continue on dev....and release...should also be important for open-modex I guess? |
Directly on dev 😱 ? I remember a meme for that :) ... Anyway, I am ok to keep it here if it would eventually end up in dev anyway. Just some human and machine checks to pass - hopefully we can finish this soon! |
Any news here? Only the failing checks are still open. I found an import error in one example (fixed in 0609ea0). I ran tox locally. There seem to be still a problem with codecov. And an error with the jupyter notebook environments. Can someone help? |
@gnn could you check thiss and we finalise this PR? |
One line was beyond 79 characters, a hard PEP 8 limit for everything. This prompted me to also look at other lines which where longer than 72 characters, a PEP 8 limit for comments and other free flowing text. I reformatted the lines to stay within the character limit. While at it, I also changed the first line of the docstring to be a the regular sentence that it is.
Write imports from the same module on one line to squelch `isort` errors.
On it. Sorry for being a blocker on this for far too long. I fixed the |
This is a requirement for v0.4 solph, as fuchur is not maintained and does not work with v0.4. But fuchur is required to use oemof tabular with datapackages when constructing those
Any news here? Would be a huge help if we could finish this soon... |
I also wanted to check if this PR could be merged soon? Tests fail on my branch rl-institut/oemof-B3#76 because of an incompatibility error of pandas caused by |
Tested this branch with some datapackages and encountered the following problem: When building instances of the tabular facade |
No description provided.