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

Remove unused test code

parent a798964c
No related branches found
No related tags found
1 merge request!139Change the way RT130 data is read for better performance
...@@ -251,13 +251,3 @@ class Reftek130(obspy_rt130_core.Reftek130): ...@@ -251,13 +251,3 @@ class Reftek130(obspy_rt130_core.Reftek130):
# check if endtime of trace is consistent # check if endtime of trace is consistent
st += tr st += tr
return st return st
data_path = '/Users/kle/Documents/SOHView data/RT130/2017149.92EB'
for root, subdirs, files in os.walk(data_path):
for file_name in files:
if file_name.startswith('.'):
continue
file_path = os.path.join(root, file_name)
a = (Reftek130.from_file(file_path)._data)
# sys.exit()
...@@ -83,11 +83,3 @@ def get_rt130_packet_header(rt130_packet: bytes) -> PacketHeader: ...@@ -83,11 +83,3 @@ def get_rt130_packet_header(rt130_packet: bytes) -> PacketHeader:
return PacketHeader(packet_type, experiment_number, unit_id, packet_time, return PacketHeader(packet_type, experiment_number, unit_id, packet_time,
byte_count, packet_sequence) byte_count, packet_sequence)
# waveform_file = '/Users/kle/PycharmProjects/sohstationviewer/tests/test_data/RT130-sample/2017149.92EB/2017150/92EB/1/000000015_0036EE80'
# soh_file = '/Users/kle/PycharmProjects/sohstationviewer/tests/test_data/RT130-sample/2017149.92EB/2017150/92EB/0/000000000_00000000'
# import time
# start = time.perf_counter()
# (Reftek130.from_file(waveform_file).to_stream())
# # print('Time taken:', time.perf_counter() - start)
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