Skip to content
Snippets Groups Projects
Commit 8535b5c5 authored by Kien Le's avatar Kien Le
Browse files

Remove unneeded package reference

parent 8ca4caf5
No related branches found
No related tags found
1 merge request!280Optimize reading RT130 data
Pipeline #3848 passed with stage
in 9 minutes and 17 seconds
...@@ -314,7 +314,7 @@ class RT130(GeneralData): ...@@ -314,7 +314,7 @@ class RT130(GeneralData):
:param path2file: absolute path to file :param path2file: absolute path to file
""" """
try: try:
rt130 = core.DecimatedReftek130.from_file(path2file) rt130 = DecimatedReftek130.from_file(path2file)
except Exception: except Exception:
fmt = traceback.format_exc() fmt = traceback.format_exc()
self.track_info(f"Skip file {path2file} can't be read " self.track_info(f"Skip file {path2file} can't be read "
...@@ -357,7 +357,7 @@ class RT130(GeneralData): ...@@ -357,7 +357,7 @@ class RT130(GeneralData):
self.log_data[cur_data_set_id]['SOH'] = [] self.log_data[cur_data_set_id]['SOH'] = []
self.log_data[cur_data_set_id]['SOH'].append((d['time'], logs)) self.log_data[cur_data_set_id]['SOH'].append((d['time'], logs))
def read_eh_or_et_packet(self, rt130: core.DecimatedReftek130) -> None: def read_eh_or_et_packet(self, rt130: DecimatedReftek130) -> None:
""" """
Files that contents EH or ET packets are data stream (DS and Files that contents EH or ET packets are data stream (DS and
mass position (DS 9) files. mass position (DS 9) files.
...@@ -388,7 +388,7 @@ class RT130(GeneralData): ...@@ -388,7 +388,7 @@ class RT130(GeneralData):
self.get_mass_pos_data_and_waveform_data( self.get_mass_pos_data_and_waveform_data(
rt130, data_stream, cur_data_set_id) rt130, data_stream, cur_data_set_id)
def get_ehet_in_log_data(self, rt130: core.DecimatedReftek130, def get_ehet_in_log_data(self, rt130: DecimatedReftek130,
cur_data_set_id: Tuple[str, str]) -> None: cur_data_set_id: Tuple[str, str]) -> None:
""" """
Read event header info to add to log_data['EHET'] Read event header info to add to log_data['EHET']
...@@ -413,7 +413,7 @@ class RT130(GeneralData): ...@@ -413,7 +413,7 @@ class RT130(GeneralData):
(d['time'], logs)) (d['time'], logs))
def get_mass_pos_data_and_waveform_data( def get_mass_pos_data_and_waveform_data(
self, rt130: core.DecimatedReftek130, data_stream: int, self, rt130: DecimatedReftek130, data_stream: int,
cur_data_set_id: Tuple[str, str]) -> None: cur_data_set_id: Tuple[str, str]) -> None:
""" """
Get mass_pos_data for the current data_set_id in DS 9. Get mass_pos_data for the current data_set_id in DS 9.
......
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