slaclab / pysmurf

Other
2 stars 9 forks source link

Unable to make offline SmurfControl object #756

Open swh76 opened 1 year ago

swh76 commented 1 year ago

Seeing this error

/usr/local/src/pysmurf/python/pysmurf/client/base/smurf_control.py in __init__(self, epics_root, cfg_file, data_dir, name, make_logfile, setup, offline, smurf_cmd_mode, no_dir, shelf_manager, validate_config, data_path_id, **kwargs)
    155                 name=name, make_logfile=make_logfile, setup=setup,
    156                 smurf_cmd_mode=smurf_cmd_mode, no_dir=no_dir,
--> 157                 data_path_id=data_path_id, **kwargs)
    158
    159     def initialize(self, data_dir=None, name=None,

/usr/local/src/pysmurf/python/pysmurf/client/base/smurf_control.py in initialize(self, data_dir, name, make_logfile, setup, smurf_cmd_mode, no_dir, publish, payload_size, data_path_id, **kwargs)
    275
    276             # Which bays were enabled on pysmurf server startup?
--> 277             self.bays = self.which_bays()
    278
    279             # Crate/carrier configuration details that won't change.

/usr/local/src/pysmurf/python/pysmurf/client/util/smurf_util.py in which_bays(self)
   2237             enabled_bays = []
   2238             for bay in [0, 1]:
-> 2239                 if f'--disable-bay{bay}' not in smurf_startup_args:
   2240                     enabled_bays.append(bay)
   2241