Skip to content
Snippets Groups Projects
Commit c0f03b9a authored by Lan Dam's avatar Lan Dam
Browse files

prevent EH, ET giving duplicated info

parent e9098d5b
No related branches found
No related tags found
1 merge request!301prevent EH, ET giving duplicated info
Pipeline #3891 passed with stage
in 4 minutes and 58 seconds
......@@ -404,13 +404,18 @@ class RT130(GeneralData):
for ind in range(0, len(rt130._data))
if ind not in ind_ehet])
log_data = []
for index in ind_ehet:
d = rt130._data[index]
logs = core.EHPacket(d).eh_et_info(nbr_dt_samples)
if 'EHET' not in self.log_data[cur_data_set_id]:
self.log_data[cur_data_set_id]['EHET'] = []
self.log_data[cur_data_set_id]['EHET'].append(
(d['time'], logs))
item = (d['time'], logs)
if item not in log_data:
# Prevent duplicated item in a file caused by EH and ET having
# the same info
log_data.append(item)
self.log_data[cur_data_set_id]['EHET'] += log_data
def get_mass_pos_data_and_waveform_data(
self, rt130: DecimatedReftek130, data_stream: int,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment