Skip to content

Allow for fixing investments #1260

Allow for fixing investments

Allow for fixing investments #1260

GitHub Actions / Black failed Oct 31, 2023 in 0s

1 error

Black found 1 error

Annotations

Check failure on line 377 in /home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/_models.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/oemof-solph/oemof-solph/src/oemof/solph/_models.py#L366-L377

         SimpleFlowBlock,
         NonConvexFlowBlock,
         InvestNonConvexFlowBlock,
     ]
 
-    def __init__(self, energysystem, discount_rate=None, fix_investments=False, **kwargs):
+    def __init__(
+        self, energysystem, discount_rate=None, fix_investments=False, **kwargs
+    ):
         if discount_rate is not None:
             self.discount_rate = discount_rate
         elif (
             not isinstance(energysystem, list)
             and energysystem.periods is not None