Skip to content

Revision/explicit network kwargs #1258

Revision/explicit network kwargs

Revision/explicit network kwargs #1258

Triggered via pull request December 15, 2023 19:59
Status Success
Total duration 52s
Artifacts 1
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

packaging.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/_energy_system.py#L74
timeindex=None, timeincrement=None, infer_last_interval=None, periods=None, use_remaining_value=False, - groupings = None, + groupings=None, ): # Doing imports at runtime is generally frowned upon, but should work # for now. See the TODO in :func:`constraint_grouping # <oemof.solph.groupings.constraint_grouping>` for more information. from oemof.solph import GROUPINGS
/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/buses/_bus.py#L38
The following sets, variables, constraints and objective parts are created * :py:class:`~oemof.solph.buses._bus.BusBlock` """ - def __init__(self, label=None, *, inputs=None, outputs=None, balanced=True, custom_properties=None): + def __init__( + self, + label=None, + *, + inputs=None, + outputs=None, + balanced=True, + custom_properties=None, + ): super().__init__( label, inputs=inputs, outputs=outputs, - custom_properties=custom_properties + custom_properties=custom_properties, ) self.balanced = balanced def constraint_group(self): if self.balanced:
/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/components/experimental/_piecewise_linear_converter.py#L64
>>> type(pwltf) <class 'oemof.solph.components.experimental._piecewise_linear_converter.\ PiecewiseLinearConverter'> """ - def __init__(self, label, *, inputs, outputs, conversion_function, in_breakpoints, pw_repn, custom_properties=None): - super().__init__(label, inputs=inputs, outputs=outputs, custom_properties=custom_properties) + def __init__( + self, + label, + *, + inputs, + outputs, + conversion_function, + in_breakpoints, + pw_repn, + custom_properties=None, + ): + super().__init__( + label, + inputs=inputs, + outputs=outputs, + custom_properties=custom_properties, + ) self.in_breakpoints = list(in_breakpoints) self.conversion_function = conversion_function self.pw_repn = pw_repn
/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/components/experimental/_generic_caes.py#L96
>>> type(caes) <class 'oemof.solph.components.experimental._generic_caes.GenericCAES'> """ def __init__( - self,label, *, + self, + label, + *, electrical_input, fuel_input, electrical_output, params, custom_properties=None,
/home/runner/work/oemof-solph/oemof-solph/tests/test_models.py#L105
def test_cellular_structure_detection(): """Test flag creation if list is passed as energysystem to model""" timeindex = pd.date_range(start="2020-01-01", periods=1, freq="H") - es = solph.EnergySystem( - timeindex=timeindex, infer_last_interval=True - ) - ec_1 = solph.EnergySystem( - timeindex=timeindex, infer_last_interval=True - ) - ec_2 = solph.EnergySystem( - timeindex=timeindex, infer_last_interval=True - ) + es = solph.EnergySystem(timeindex=timeindex, infer_last_interval=True) + ec_1 = solph.EnergySystem(timeindex=timeindex, infer_last_interval=True) + ec_2 = solph.EnergySystem(timeindex=timeindex, infer_last_interval=True) m = solph.Model(energysystem=[es, ec_1, ec_2]) assert m.is_cellular def test_sub_cell_node_consideration(): """ Test if the nodes of sub-cells are considered for cellular energysystems. """ timeindex = pd.date_range(start="2020-01-01", periods=1, freq="H") - es = solph.EnergySystem( - timeindex=timeindex, infer_last_interval=True - ) - ec_1 = solph.EnergySystem( - timeindex=timeindex, infer_last_interval=True - ) + es = solph.EnergySystem(timeindex=timeindex, infer_last_interval=True) + ec_1 = solph.EnergySystem(timeindex=timeindex, infer_last_interval=True) bus_es = solph.buses.Bus(label="bus_es") bus_ec_1 = solph.buses.Bus(label="bus_ec_1") es.add(bus_es) ec_1.add(bus_ec_1) m = solph.Model(energysystem=[es, ec_1])
/home/runner/work/oemof-solph/oemof-solph/tests/test_models.py#L144
""" Test if the flows of sub-cells are considered for cellular energysystems. """ timeindex = pd.date_range(start="2020-01-01", periods=1, freq="H") - es = solph.EnergySystem( - timeindex=timeindex, infer_last_interval=True - ) - ec_1 = solph.EnergySystem( - timeindex=timeindex, infer_last_interval=True - ) + es = solph.EnergySystem(timeindex=timeindex, infer_last_interval=True) + ec_1 = solph.EnergySystem(timeindex=timeindex, infer_last_interval=True) bus_es = solph.buses.Bus(label="bus_es") bus_ec_1 = solph.buses.Bus(label="bus_ec_1") es.add(bus_es) ec_1.add(bus_ec_1)
build (3.9)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

Artifacts

Produced during runtime
Name Size
tox-gh-actions-dist Expired
1.97 MB