From ca498db3bc77bb809664c0c628781b9f41d3b0b4 Mon Sep 17 00:00:00 2001 From: anima Date: Fri, 13 Nov 2026 02:14:34 +0100 Subject: [PATCH] streamline default --- libs/wrapper/power.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/wrapper/power.py b/libs/wrapper/power.py index 75cda78..8e666ed 100644 --- a/libs/wrapper/power.py +++ b/libs/wrapper/power.py @@ -41,12 +41,12 @@ class ThermalCapWrapper: clock = get_component("clock") default_threshold = 0.98 - def __init__(self, cap: ThermalCap | str, threshold: float = 0.99, outposts: list[OutpostComponent] | OutpostComponent | OutpostRef | str | None = None): + def __init__(self, cap: ThermalCap | str, threshold: float = 0.98, outposts: list[OutpostComponent] | OutpostComponent | OutpostRef | str | None = None): """init wrapper for `ThermalCap` Args: cap (`ThermalCap`): thermal cap component. usally self. - threshold (`float`, optional): percent level what thermal cap hold this pressure level. (0-1). default 0.99. + threshold (`float`, optional): percent level what thermal cap hold this pressure level. (0-1). default 0.98. outpost (`OutpostComposnent` | `OutpostRef` | `str` | `None`, optional): outpost for steam out. None = nearest. default None. """ self.cap = cap @@ -248,8 +248,7 @@ class SteamTurbineWrapper: `list[GasTank]` """ gastanks = [ get_component(s.id) for s in get_component(self.turbine.outpost.id).buildings("gas_tank") ] - if prefiled: - return [ s for s in gastanks if s.fluid() == "steam" ] + if prefiled: return [ s for s in gastanks if s.fluid() == "steam" ] else: return gastanks @property