autosweep.data_types.StationConfig#

class autosweep.data_types.StationConfig(station_config: dict)[source]#

Contains the details of the station configuration, including where to save data and which instruments are present and how to connect to them.

Parameters:

station_config (dict) – The station configuration

__init__(station_config: dict)[source]#

Methods

__init__(station_config)

from_dict(data)

A class method to generate a class instance from a dict

read_json(path)

Create a class instance from a JSON file

to_dict()

Used to turn the instance into a dictionary.

to_json(path)

Write the contents of the object instance to JSON in such a way that the classinstance can be re-generated.

Attributes

data_path

The path where data will be saved

instruments

Details on all the instruments present in the station