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

flake8

parent fdccba21
No related branches found
No related tags found
1 merge request!152intergrate rt130
...@@ -10,7 +10,8 @@ from sohstationviewer.model.reftek_data.reftek_reader.core import ( ...@@ -10,7 +10,8 @@ from sohstationviewer.model.reftek_data.reftek_reader.core import (
DiscontinuousTrace, DiscontinuousTrace,
Reftek130, Reftek130,
) )
from sohstationviewer.model.reftek_data.reftek_reader.header import NotRT130FileError from sohstationviewer.model.reftek_data.reftek_reader.header import \
NotRT130FileError
class TestDiscontinuousTrace(unittest.TestCase): class TestDiscontinuousTrace(unittest.TestCase):
......
...@@ -8,7 +8,8 @@ from sohstationviewer.model.reftek_data.reftek_reader.packet_readers import ( ...@@ -8,7 +8,8 @@ from sohstationviewer.model.reftek_data.reftek_reader.packet_readers import (
decode_uncompressed, decode_compressed, read_dt_packet, read_eh_et_packet, decode_uncompressed, decode_compressed, read_dt_packet, read_eh_et_packet,
read_soh_packet, read_soh_packet,
) )
from sohstationviewer.model.reftek_data.reftek_reader.packets import SOHExtendedHeader from sohstationviewer.model.reftek_data.reftek_reader.packets import \
SOHExtendedHeader
unpacker = Unpacker('>') unpacker = Unpacker('>')
......
...@@ -6,7 +6,8 @@ from unittest.mock import patch ...@@ -6,7 +6,8 @@ from unittest.mock import patch
from obspy.io.reftek.packet import PACKET_FINAL_DTYPE from obspy.io.reftek.packet import PACKET_FINAL_DTYPE
from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker
from sohstationviewer.model.reftek_data.reftek_reader.header import NotRT130FileError from sohstationviewer.model.reftek_data.reftek_reader.header import \
NotRT130FileError
from sohstationviewer.model.reftek_data.reftek_reader.packet_readers import ( from sohstationviewer.model.reftek_data.reftek_reader.packet_readers import (
read_eh_et_packet, read_dt_packet, read_soh_packet, read_eh_et_packet, read_dt_packet, read_soh_packet,
) )
...@@ -14,7 +15,8 @@ from sohstationviewer.model.reftek_data.reftek_reader.packets import ( ...@@ -14,7 +15,8 @@ from sohstationviewer.model.reftek_data.reftek_reader.packets import (
SOHPacket, SOHPacket,
EHETPacket, DTPacket, EHETPacket, DTPacket,
) )
from sohstationviewer.model.reftek_data.reftek_reader.reftek_reader_helper import ( from sohstationviewer.model.reftek_data.reftek_reader.reftek_reader_helper \
import (
read_rt130_file, convert_packet_to_obspy_format, read_rt130_file, convert_packet_to_obspy_format,
) )
...@@ -29,7 +31,8 @@ class TestReadRT130File(unittest.TestCase): ...@@ -29,7 +31,8 @@ class TestReadRT130File(unittest.TestCase):
) )
eh_et_patcher = patch( eh_et_patcher = patch(
'sohstationviewer.model.reftek_data.reftek_reader.reftek_reader_helper.' 'sohstationviewer.model.reftek_data.reftek_reader.'
'reftek_reader_helper.'
'read_eh_et_packet', 'read_eh_et_packet',
wraps=read_eh_et_packet wraps=read_eh_et_packet
) )
...@@ -37,7 +40,8 @@ class TestReadRT130File(unittest.TestCase): ...@@ -37,7 +40,8 @@ class TestReadRT130File(unittest.TestCase):
self.addCleanup(eh_et_patcher.stop) self.addCleanup(eh_et_patcher.stop)
dt_patcher = patch( dt_patcher = patch(
'sohstationviewer.model.reftek_data.reftek_reader.reftek_reader_helper.' 'sohstationviewer.model.reftek_data.reftek_reader.'
'reftek_reader_helper.'
'read_dt_packet', 'read_dt_packet',
wraps=read_dt_packet wraps=read_dt_packet
) )
...@@ -45,7 +49,8 @@ class TestReadRT130File(unittest.TestCase): ...@@ -45,7 +49,8 @@ class TestReadRT130File(unittest.TestCase):
self.addCleanup(dt_patcher.stop) self.addCleanup(dt_patcher.stop)
soh_patcher = patch( soh_patcher = patch(
'sohstationviewer.model.reftek_data.reftek_reader.reftek_reader_helper.' 'sohstationviewer.model.reftek_data.reftek_reader.'
'reftek_reader_helper.'
'read_soh_packet', 'read_soh_packet',
wraps=read_soh_packet wraps=read_soh_packet
) )
......
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