Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions socs/agents/pysmurf_controller/smurf_subprocess_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ 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
"""
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

Expand Down Expand Up @@ -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)
Expand Down