rewrite.lib.common package¶
Submodules¶
rewrite.lib.common.CountRecord module¶
-
class
rewrite.lib.common.CountRecord.CountRecord(msg)[source]¶ Bases:
objectHolds the counting information
incoming format: DS S0=00000000 S1=00000000 S2=00000000 S3=00000000 S4=00000000 S5=18531FFD
Parameters: - (Bool) (valid) – validity of the record. Will be set to True if the message starts with ‘DS’
- (int) (counts_trigger) – Counts in channel X
- (int) – trigger counts recieved
- (Real) (counts_time) – the time of the record
rewrite.lib.common.DataRecord module¶
rewrite.lib.common.PressureRecord module¶
-
class
rewrite.lib.common.PressureRecord.PressureRecord(msg)[source]¶ Bases:
objectHolds Pressure information
incoming format: ‘BA 1495’ or: “mBar now reads = 1015.0 (use cmd ‘SA’ when done)”
Parameters: - (Bool) (valid) – Validity of the record. Set to True, if the message starts with ‘BA’
- (Real) (pressure) – Floating point value of in the pressure record
- (PressureType) (pressure_type) – Either mBar or plain data
rewrite.lib.common.Record module¶
-
class
rewrite.lib.common.Record.Record(packageNumber, RecType, timestamp, payload)[source]¶ Bases:
objectThe basic data-structure used to communicate between DAQ and analysis
VERY EARLY STAGE! Everything is subject to change!
Parameters: - packageNumber – A sequential number of all packages send by a DAQ server
- RecType – Type of the record
- timestamp – Unixtimestamp
- payload – Payload to be send