Skip to content

mca

borealis.mca

MCAMetadata(runtime, input_cr, output_cr, det_info)

Source code in borealis/mca.py
11
12
13
14
15
16
17
18
19
def __init__(self, runtime: float, input_cr: float, output_cr: float, det_info: dict):
    self.runtime = runtime
    self.input_cr = input_cr
    self.output_cr = output_cr
    self.acq_date = datetime.datetime.now()
    self.det_sn = det_info["serial_number"]
    self.det_alias = det_info["alias"]
    self.det_type = det_info["type"]
    LOGGER.debug('New MCA created')

dummy() classmethod

For testing purposes

Source code in borealis/mca.py
40
41
42
43
@classmethod
def dummy(cls):
    """For testing purposes"""
    return cls(1,10,10,{'serial_number': 'Unknown', 'alias': 'DummyDet', 'type': 'Dummy'})