oemof / oemof-examples

A collection of oemof examples and notebooks.
https://oemof.org/
MIT License
43 stars 68 forks source link

Review v.0.3.x Examples #42

Closed oakca closed 4 years ago

oakca commented 5 years ago

Review v.0.3 Examples

oakca commented 5 years ago

https://github.com/oemof/oemof-examples/commit/0b76b8408aa868530b1611b7fad4d257786222a3 fixes following:

oakca commented 5 years ago

e21f33ded1ab079824a04a651ca06ec00e2081cb removes empty __init__.py files.

oakca commented 5 years ago

5e762fe3cc0a0fab160b62f66a9c2234f1317854 fixes Figure 3 and Figure 4 x-labels in storage.py.

Before rot=0, the x-labels were out of the figure.

Line [132, 133] can be removed if we want to have x-labels 'storage_elec_balanced', instead of 'balanced'. However then, x-labels are overlapping if the figure is not maximized (full-screen).

oakca commented 5 years ago

b82c3b6c7f6a4f2a2a9d508ad3e29d4e96650762 adds copyright and license string to all of the examples. The structure of the doc-strings are changed to have same kind of syntax. An empty __init__.py file is removed. Documentation/comments for emission_constraint.py is added.

p-snft commented 5 years ago

The empty __init__.py is actually there for a reason: You may import files in directories, where an __init__.py is present, regardless of the contents of that file.

oakca commented 5 years ago

so should we add __init__.py to all of the examples, if that was the intention?

p-snft commented 5 years ago

Well, maybe not in this case. I don't see that someone imports the examples. However, it's not an argument that __init__.py was empty.

BTW: Great work! Thanks.

oakca commented 5 years ago

Unfortunately I could not make graphviz function, so someone should run /electrical and /excel_reader plots, and check if they are correct.

Additionally I will add /jupyter_tutorials of v0.2.x into v0.3.x.

oakca commented 5 years ago

e1b922473176c7690cf7cfadc43c4cfca314ff93 adds the /jupyter_examples of oemof v0.2.x into v0.3.x.

One file 3_Draw_network_graph.ipynb is excluded from the commit, because it was not running. Under section Create Graph, following error is present:

KeyError: "<oemof.solph.network.Transformer: 'pp_chp'>"

I am guessing it is because of the oemof.graph module. So either we remove the chp plant from the file 1_Simple_dispatch_store_results.ipynb or some changes have to be done in oemof.graph module.

Lastly 2564b8bbc7e193519c469ef946954a740778d158 removes the output from 1_Simple_dispatch_store_results.ipynb

jakob-wo commented 4 years ago

I will close this Issue.