File tree Expand file tree Collapse file tree 2 files changed +18
-11
lines changed
Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ def __init__(
210210 target_rpm : Optional [float ],
211211 unit : pt .Unit ,
212212 experiment : pt .Experiment ,
213- rpm_calculator : Optional [RpmCalculator | MockRpmCalculator ] = None ,
213+ rpm_calculator : " Optional[RpmCalculator | MockRpmCalculator]" = None ,
214214 calibration : bool | structs .SimpleStirringCalibration | None = True ,
215215 enable_dodging_od : bool = False ,
216216 duty_cycle : float | None = None ,
Original file line number Diff line number Diff line change @@ -155,18 +155,25 @@ def get_config() -> ConfigParserMod:
155155 config = ConfigParserMod (strict = False )
156156 from pioreactor .whoami import is_testing_env
157157
158- if is_testing_env ():
159- local_config_path = os .environ .get ("LOCAL_CONFIG" , "" )
160-
161- if os .environ .get ("GLOBAL_CONFIG" ) is not None :
162- global_config_path = os .environ ["GLOBAL_CONFIG" ]
163- elif os .environ .get ("DOT_PIOREACTOR" ) is not None :
164- global_config_path = os .environ ["DOT_PIOREACTOR" ] + "/config.ini"
165- else :
158+ if os .environ .get ("GLOBAL_CONFIG" ) is not None :
159+ global_config_path = os .environ ["GLOBAL_CONFIG" ]
160+ elif os .environ .get ("DOT_PIOREACTOR" ) is not None :
161+ global_config_path = os .environ ["DOT_PIOREACTOR" ] + "/config.ini"
162+ else :
163+ if is_testing_env ():
166164 global_config_path = "./.pioreactor/config.ini"
165+ else :
166+ global_config_path = "/home/pioreactor/.pioreactor/config.ini"
167+
168+ if os .environ .get ("LOCAL_CONFIG" ) is not None :
169+ local_config_path = os .environ ["GLOBAL_CONFIG" ]
170+ elif os .environ .get ("DOT_PIOREACTOR" ) is not None :
171+ local_config_path = os .environ ["DOT_PIOREACTOR" ] + "/unit_config.ini"
167172 else :
168- global_config_path = "/home/pioreactor/.pioreactor/config.ini"
169- local_config_path = "/home/pioreactor/.pioreactor/unit_config.ini"
173+ if is_testing_env ():
174+ local_config_path = "./.pioreactor/unit_config.ini"
175+ else :
176+ local_config_path = "/home/pioreactor/.pioreactor/unit_config.ini"
170177
171178 if not Path (global_config_path ).exists ():
172179 raise FileNotFoundError (
You can’t perform that action at this time.
0 commit comments