Skip to content

Add heating networ example#35

Draft
uvchik wants to merge 21 commits into
mainfrom
add-heating-networ-example
Draft

Add heating networ example#35
uvchik wants to merge 21 commits into
mainfrom
add-heating-networ-example

Conversation

@uvchik

@uvchik uvchik commented Jun 12, 2026

Copy link
Copy Markdown
Member

This PR depends on the following PR and should not be merged before them:

An example to test a heating network with new components.

@uvchik uvchik self-assigned this Jun 12, 2026
@uvchik uvchik marked this pull request as draft June 12, 2026 21:08
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

❌ 30 Tests Failed:

Tests completed Failed Passed Skipped
138 30 108 3
View the top 3 failed test(s) by shortest run time
src.oemof.eesyplan.components.production.commodity::eesyplan.components.production.commodity.Commodity.__init__
Stack Traces | 0.003s run time
021 commodity
022 capacity
023 full_load_hours_max
024 variable_cost
025 
026 Examples
027 --------
028 >>> # Limited by the capacity in yearly system with houry time steps.
029 >>> # In every time step the output will be between 0 and 10
030 >>> Commodity(
UNEXPECTED EXCEPTION: NameError("name 'bus_out' is not defined")
Traceback (most recent call last):
  File ".../hostedtoolcache/Python/3.13.13.../x64/lib/python3.13/doctest.py", line 1398, in __run
    exec(compile(example.source, filename, "single",
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                 compileflags, True), test.globs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<doctest eesyplan.components.production.commodity.Commodity.__init__[0]>", line 3, in <module>
NameError: name 'bus_out' is not defined
.../components/production/commodity.py:30: UnexpectedException
tests.postprocessing.test_graph.TestCapacitiesGraph::test_capacities_graph_empty_nodes
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestCapacitiesGraph::test_capacities_graph_layout
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestCapacitiesGraph::test_capacities_graph_marker_style
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestCapacitiesGraph::test_capacities_graph_no_optimized_capacity
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestCapacitiesGraph::test_capacities_graph_values
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestEdgeCases::test_capacities_graph_all_zeros
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestIntegration::test_capacities_full_workflow
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestIntegration::test_sankey_full_workflow
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_hover_template_with_row
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_hover_template_without_row
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_invalid_aggregation
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_max_aggregation
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_with_energy_system
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_with_row_index_int
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_with_row_index_label
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_all_aggregations[sum]
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_different_rows[0]
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_different_rows[15]
Stack Traces | 0.007s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graphs::test_graph_capacities
Stack Traces | 0.007s run time
tests/postprocessing/test_graphs.py:116: in test_graph_capacities
    res, es = simple_script()
              ^^^^^^^^^^^^^^^
tests/postprocessing/test_graphs.py:85: in simple_script
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestCapacitiesGraph::test_capacities_graph_basic
Stack Traces | 0.008s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_mean_aggregation
Stack Traces | 0.008s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_all_aggregations[max]
Stack Traces | 0.008s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_all_aggregations[mean]
Stack Traces | 0.008s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_different_rows[10]
Stack Traces | 0.008s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_different_rows[20]
Stack Traces | 0.008s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankeyParametrized::test_sankey_different_rows[5]
Stack Traces | 0.008s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.postprocessing.test_graph.TestSankey::test_sankey_basic_sum_aggregation
Stack Traces | 0.01s run time
tests/postprocessing/test_graph.py:93: in sample_energy_system
    ElectricalStorage(
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'crate'
tests.test_datapackage::test_simple_datapackage
Stack Traces | 0.566s run time
tests/test_datapackage.py:17: in test_simple_datapackage
    energy_system = es.create_energy_system_from_dp(path)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../eesyplan/datapackage/energy_system.py:27: in create_energy_system_from_dp
    es = EnergySystem.from_datapackage(
.../hostedtoolcache/Python/3.13.13........./x64/lib/python3.13.../datapackage/datapackage/reading.py:627: in deserialize_energy_system
    read_facade(
.../hostedtoolcache/Python/3.13.13........./x64/lib/python3.13.../datapackage/datapackage/reading.py:112: in read_facade
    instance = create(mapping, facade, facade)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../hostedtoolcache/Python/3.13.13........./x64/lib/python3.13.../datapackage/datapackage/reading.py:359: in create
    instance = clsi(**init)
               ^^^^^^^^^^^^
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'efficiency'
tests.postprocessing.test_graphs::test_sankey_diagram
Stack Traces | 0.574s run time
tests/postprocessing/test_graphs.py:126: in test_sankey_diagram
    energy_system = es.create_energy_system_from_dp(path)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../eesyplan/datapackage/energy_system.py:27: in create_energy_system_from_dp
    es = EnergySystem.from_datapackage(
.../hostedtoolcache/Python/3.13.13........./x64/lib/python3.13.../datapackage/datapackage/reading.py:627: in deserialize_energy_system
    read_facade(
.../hostedtoolcache/Python/3.13.13........./x64/lib/python3.13.../datapackage/datapackage/reading.py:112: in read_facade
    instance = create(mapping, facade, facade)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../hostedtoolcache/Python/3.13.13........./x64/lib/python3.13.../datapackage/datapackage/reading.py:359: in create
    instance = clsi(**init)
               ^^^^^^^^^^^^
E   TypeError: ElectricalStorage.__init__() got an unexpected keyword argument 'efficiency'

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

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