Skip to content

Feature/add thermal building model #1117

Feature/add thermal building model

Feature/add thermal building model #1117

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Black failed Oct 30, 2023 in 0s

3 errors

Black found 3 errors

Annotations

Check failure on line 80 in /home/runner/work/oemof-solph/oemof-solph/examples/thermal_building_model/calculate_gain_by_Sun.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/oemof-solph/oemof-solph/examples/thermal_building_model/calculate_gain_by_Sun.py#L68-L80

             "Albedo",
             "liq_precip_depth_mm",
             "liq_precip_rate_Hour",
         ]
         self.weather_data = pd.read_csv(
-            epwfile_path, skiprows=8, header=None, names=epw_labels,
-            encoding='ISO-8859-1', engine='python').drop('datasource', axis=1)
+            epwfile_path,
+            skiprows=8,
+            header=None,
+            names=epw_labels,
+            encoding="ISO-8859-1",
+            engine="python",
+        ).drop("datasource", axis=1)
 
     def calc_sun_position(self, latitude_deg, longitude_deg, year, hoy):
         """
         Calculates the Sun Position for a specific hour and location
         :param latitude_deg: Geographical Latitude in Degrees

Check failure on line 20 in /home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/components/experimental/__init__.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/components/experimental/__init__.py#L9-L20

 
 from ._generic_caes import GenericCAES
 from ._piecewise_linear_converter import PiecewiseLinearConverter
 from ._sink_dsm import SinkDSM
 from ._generic_building import GenericBuilding
+
 __all__ = [
     "GenericCAES",
     "PiecewiseLinearConverter",
     "SinkDSM",
-    "GenericBuilding"
+    "GenericBuilding",
 ]

Check failure on line 27 in /home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/components/experimental/_generic_building.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/components/experimental/_generic_building.py#L17-L27

 from typing import List
 from pyomo.environ import Set
 from pyomo.environ import Var
 from oemof.solph._helpers import check_node_object_for_missing_attribute
 from oemof.network import network
+
 
 class GenericBuilding(network.Node):
     r"""
     Component `GenericBuilding` to model with basic characteristics of buildings.
     A 5RC-model is chosen to abstract buildings in a one zone model and make them linear-optimizable.