Skip to content

data_collector

borealis.data_collector

DataCollector()

Bases: DataComponent

Data collector with HDF5 file handler.

DataCollector constructor.

Source code in borealis/data_collector.py
17
18
19
20
21
22
23
24
25
26
27
28
29
def __init__(self):
    """
    DataCollector constructor.

    """
    super().__init__()
    self.h5file = None
    self.current_scan = None
    self.data_dir = Path.cwd() / 'data'
    self.filename_base = 'borealis_datafile_'
    self.current_sample = 'Unknown sample'
    self.instrument = 'Unknown instrument'
    self.experiment_id = 'Unknown ID'

__str__()

Custom str method for DataCollector class.

Source code in borealis/data_collector.py
31
32
33
def __str__(self):
    """Custom __str__ method for DataCollector class."""
    return f'{self.__class__.__name__}'