From c2c7229a243dade58735294dece6b4ac9216c4db Mon Sep 17 00:00:00 2001 From: jlashner Date: Tue, 30 Jul 2024 22:08:09 -0400 Subject: [PATCH] Dump configs on IV --- socs/agents/pysmurf_controller/smurf_subprocess_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/socs/agents/pysmurf_controller/smurf_subprocess_util.py b/socs/agents/pysmurf_controller/smurf_subprocess_util.py index 878b2c181..404f033a0 100644 --- a/socs/agents/pysmurf_controller/smurf_subprocess_util.py +++ b/socs/agents/pysmurf_controller/smurf_subprocess_util.py @@ -83,7 +83,7 @@ def encode_dataclass(obj): return json.dumps(data).encode() -def get_smurf_control(): +def get_smurf_control(dump_configs=False): """ Get the SMuRF control object and sodetlib configuration object for the current slot @@ -91,7 +91,7 @@ def get_smurf_control(): slot = os.environ['SLOT'] cfg = DetConfig() cfg.load_config_files(slot=slot) - S = cfg.get_smurf_control() + S = cfg.get_smurf_control(dump_configs=dump_configs) S.load_tune(cfg.dev.exp['tunefile']) return S, cfg @@ -129,7 +129,7 @@ def take_bgmap(kwargs=None): def take_iv(iv_kwargs=None): """Runs and analyzes an IV curve""" - S, cfg = get_smurf_control() + S, cfg = get_smurf_control(dump_configs=True) if iv_kwargs is None: iv_kwargs = {} iva = iv.take_iv(S, cfg, **iv_kwargs)