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

flake8

parent 27692367
No related branches found
No related tags found
1 merge request!139Change the way RT130 data is read for better performance
Pipeline #2809 passed with stage
in 2 minutes and 48 seconds
......@@ -45,7 +45,6 @@ class TestParseRT130Time(unittest.TestCase):
self.assertEqual(result.year, 1950)
class TestGetRT130PacketHeader(unittest.TestCase):
def test_header_extracted_correctly(self):
header = b'DT\x12\x15\x98\xe1\x36\x01\x15\x13\x51\x35\x05\x12\x01\x11'
......@@ -71,4 +70,3 @@ class TestGetRT130PacketHeader(unittest.TestCase):
packet = header + b' ' * 1008
with self.assertRaises(NotRT130FileError):
get_rt130_packet_header(packet)
......@@ -4,8 +4,7 @@ from unittest.mock import patch
from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker
from sohstationviewer.model.reftek.reftek_data.packet import \
eh_et_payload_end_in_packet
from sohstationviewer.model.reftek.reftek_data.packet_readers import \
(
from sohstationviewer.model.reftek.reftek_data.packet_readers import (
decode_uncompressed, decode_compressed, read_dt_packet, read_eh_et_packet,
read_soh_packet,
)
......
......@@ -7,16 +7,14 @@ from obspy.io.reftek.packet import PACKET_FINAL_DTYPE
from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker
from sohstationviewer.model.reftek.reftek_data.header import NotRT130FileError
from sohstationviewer.model.reftek.reftek_data.packet_readers import \
(
from sohstationviewer.model.reftek.reftek_data.packet_readers import (
read_eh_et_packet, read_dt_packet, read_soh_packet,
)
from sohstationviewer.model.reftek.reftek_data.packets import (
SOHPacket,
EHETPacket, DTPacket,
)
from sohstationviewer.model.reftek.reftek_data.reftek_helper import \
(
from sohstationviewer.model.reftek.reftek_data.reftek_helper import (
read_rt130_file, convert_packet_to_obspy_format,
)
......@@ -104,4 +102,3 @@ class TestConvertPacketToObspyFormat(unittest.TestCase):
)
self.assertEqual(len(converted_packet), len(PACKET_FINAL_DTYPE))
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