-
Notifications
You must be signed in to change notification settings - Fork 5
Description
See also: HiSPARC/datastore#18
Issue: Singles data columns for two detector stations are still set to zero instead of -1. This is non-standard. The columns should be -1 for missing slave data.
HiSPARC/datastore#20 changed the behaviour of the datastore: When no data is reported for the slave, it is set to -1.
Unfortunately, this turns out to be a firmware/DAQ/monitor issue as well. The incoming data always has the slave columns set to some values. (zero if the station has no slave).
Analysis:
The singles data is generated from the one second messages.
These are interpreted by the hs monitor.
Output of the above code for a two detector station (8004):
{'datalist': [{'data': 243, 'data_uploadcode': 'MAS_CH1_LOW'},
{'data': 115, 'data_uploadcode': 'MAS_CH1_HIGH'},
{'data': 219, 'data_uploadcode': 'MAS_CH2_LOW'},
{'data': 99, 'data_uploadcode': 'MAS_CH2_HIGH'},
{'data': 0, 'data_uploadcode': 'SLV_CH1_LOW'},
{'data': 0, 'data_uploadcode': 'SLV_CH1_HIGH'},
{'data': 0, 'data_uploadcode': 'SLV_CH2_LOW'},
{'data': 0, 'data_uploadcode': 'SLV_CH2_HIGH'}],
'header': {'date': '2017-02-26',
'datetime': datetime.datetime(2017, 2, 26, 7, 26, 59),
'eventtype_uploadcode': 'SIN',
'nanoseconds': 0,
'time': '07:26:59'}},
So for all new data recieved from a station, the slave columns will always be zero for a missing slave.
The current status is:
- All data in the datastore before the feb 13st 2017 migration: slave columns set to
-1for missing slaves - All data that arrived after the migration: slave columns set to
0for missing slave.