babelscan.instrument
instrument
- Define Instrument class
An instrument is a generator of Scans and FolderMonitors (experiements) with specific default settings
- babelscan.instrument.instrument_from_config(config_file)[source]
- Create Instrument class from instrument.config file.
- .config files should be json files with the following keys:
‘name’: str ‘default_names’: dict, ‘formats’: dict, ‘default_values’: dict, ‘options’: dict
- Parameters:
config_file – str config filename
- Returns:
Instrument
Class: Instrument
- class babelscan.instrument.Instrument(name, default_names=None, formats=None, default_values=None, options=None)[source]
- Instrument class
An instrument is a generator of Scans and FolderMonitors (experiements) with specific default settings
beamline = Instrument(‘name’, default_names, functions, filename_format) :param name: str : name of instrument :param default_names: dict : Scan objects created will :param formats: dict : :param options: dict :