Skip to content
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

Release v0.5.0 #48

Merged
merged 146 commits into from
Jan 12, 2024
Merged

Release v0.5.0 #48

merged 146 commits into from
Jan 12, 2024

Conversation

p-snft
Copy link
Member

@p-snft p-snft commented Jan 12, 2024

Release v0.5

  • Improved code quality
  • Add Entity.custom_properties
  • Simplify node access (experimental: energy_system.node[label])
  • Make keyword arguments explicit

p-snft and others added 30 commits February 17, 2022 16:51
The class Edge does not inherit from Node anymore,
instead the former class Node is renamed to Entity.
(This name was present before but deleted by now.)
To keep the graph structure, a new class Node also
inherits from Entity - without adding further
functionality. This way, everything works as before
but clean graph theoretic language is preserved.
Entity is the mother class of Node and Edge,
but instances of Node shoukd not be used.
Thus, it should be in the sence of comprehensability
to name Bus, Component, and Edge directly.
Asserts are meant for debugging. If a check should be there for end users
an if/raise statement is the way to go.
The import aliases where rarely used and thus more confusing than helpful.
The import aliases where rarely used and thus more confusing than helpful.
It makes sense to be precise if objects are Nodes, Edges, or Entities.
As the documentation mixes them (Edges were Nodes before), I tried to
figure or by reverse engeneering using solph.
According to
https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html,
there needs to be exactly one '%s' in every string in the config.
As Entity.registry is deprecated anyway, this decorator should also go.
Automatic registration of `Node`s was deprecated,
so I removed it. There still was a ToDo note how
to improve it. I also deleted that one.
p-snft and others added 28 commits December 14, 2023 13:55
The setter is problably unused, and I do not see a test for it.
As I do not see a use case, I propose to delete it.
Make energy_system.nodes a dict
Remove __slots__ and corresponding test
The error was not tested for because an error was risen before.
network.Bus is deprecated. Using it causes a warning.
The version we use until now (v2) is deprecated and depends on old Javascript, as far as I understand. Support will be dropped soon.
Double use of the name es also caused an error being hard to detect.
Improve warnings, e.g. add warning for experimental node access API and fix other warnings that are
not meaningful for the user.
Release v0.5

* Improved code quality
* Add Entity.custom_properties
* Simplify node access (experimental: energy_system.node[label])
* Make keyword arguments explicit
@p-snft p-snft changed the title V0.5 Release v0.5.0 Jan 12, 2024
@p-snft p-snft merged commit b23bdfa into master Jan 12, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant