Skip to content

Commit

Permalink
Merge pull request #25 from oemof/revision/network_submodule
Browse files Browse the repository at this point in the history
Split network.network into submodules
  • Loading branch information
p-snft authored Sep 27, 2023
2 parents 34f8146 + 131fe5b commit 8a2204b
Show file tree
Hide file tree
Showing 12 changed files with 420 additions and 380 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ Changelog
* Improved testing
* Explicitly defined API


0.5.0
-----

* Improved code quality

2 changes: 2 additions & 0 deletions src/oemof/network/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
from . import network
from .network import Bus
from .network import Component
from .network import Edge
from .network import Sink
from .network import Source
from .network import Transformer

__all__ = [
"Bus",
"Component",
"Edge",
"energy_system",
"graph",
"groupings",
Expand Down
2 changes: 1 addition & 1 deletion src/oemof/network/energy_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class EnergySystem:
>>> bus is es.groups['electricity']
False
>>> es.groups['electricity']
"<oemof.network.network.Bus: 'electricity'>"
"<oemof.network.network.nodes.Bus: 'electricity'>"
For simple user defined groupings, you can just supply a function that
computes a key from an :class:`entity <oemof.core.network.Entity>` and the
Expand Down
2 changes: 1 addition & 1 deletion src/oemof/network/groupings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from itertools import chain
from itertools import filterfalse

from oemof.network.network import Edge
from oemof.network.network.edge import Edge

# TODO: Update docstrings.
#
Expand Down
Loading

0 comments on commit 8a2204b

Please sign in to comment.