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

change name from model/reftek/reftek_data/ to model/reftek/reftek_reader/

parent 9c9382b0
No related branches found
No related tags found
1 merge request!152intergrate rt130
Showing
with 25 additions and 25 deletions
...@@ -23,9 +23,9 @@ from obspy.core.util.obspy_types import ObsPyException ...@@ -23,9 +23,9 @@ from obspy.core.util.obspy_types import ObsPyException
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.reftek_data.packet import EHPacket from sohstationviewer.model.reftek.reftek_reader.packet import EHPacket
from sohstationviewer.model.reftek.reftek_data.reftek_helper import ( from sohstationviewer.model.reftek.reftek_reader.reftek_helper import (
read_rt130_file, convert_packet_to_obspy_format, read_rt130_file, convert_packet_to_obspy_format,
) )
......
...@@ -19,7 +19,7 @@ from obspy.io.reftek.util import ( ...@@ -19,7 +19,7 @@ from obspy.io.reftek.util import (
_decode_ascii, _parse_long_time, _16_tuple_ascii, _16_tuple_float, _decode_ascii, _parse_long_time, _16_tuple_ascii, _16_tuple_float,
_16_tuple_int, _16_tuple_int,
) )
from sohstationviewer.model.reftek.reftek_data.soh_packet import SOHPacket from sohstationviewer.model.reftek.reftek_reader.soh_packet import SOHPacket
class Reftek130UnpackPacketError(ValueError): class Reftek130UnpackPacketError(ValueError):
......
...@@ -4,9 +4,9 @@ import numpy ...@@ -4,9 +4,9 @@ import numpy
from obspy.io.reftek.util import bcd from obspy.io.reftek.util import bcd
from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker
from sohstationviewer.model.reftek.reftek_data.packet import \ from sohstationviewer.model.reftek.reftek_reader.packet import \
eh_et_payload_end_in_packet eh_et_payload_end_in_packet
from sohstationviewer.model.reftek.reftek_data.packets import ( from sohstationviewer.model.reftek.reftek_reader.packets import (
DTExtendedHeader, DTExtendedHeader,
EHETExtendedHeader, SOHExtendedHeader, EHETExtendedHeader, SOHExtendedHeader,
) )
......
import dataclasses import dataclasses
from sohstationviewer.model.reftek.reftek_data.header import PacketHeader from sohstationviewer.model.reftek.reftek_reader.header import PacketHeader
@dataclasses.dataclass @dataclasses.dataclass
......
...@@ -5,15 +5,15 @@ import numpy ...@@ -5,15 +5,15 @@ import numpy
import numpy as np import numpy as np
from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker
from sohstationviewer.model.reftek.reftek_data.packet import \ from sohstationviewer.model.reftek.reftek_reader.packet import \
eh_et_payload_end_in_packet eh_et_payload_end_in_packet
from sohstationviewer.model.reftek.reftek_data.packet_readers import ( from sohstationviewer.model.reftek.reftek_reader.packet_readers import (
read_dt_packet, read_eh_et_packet, read_soh_packet, read_dt_packet, read_eh_et_packet, read_soh_packet,
) )
from sohstationviewer.model.reftek.reftek_data.packets import ( from sohstationviewer.model.reftek.reftek_reader.packets import (
DTPacket, EHETPacket, SOHPacket, DTPacket, EHETPacket, SOHPacket,
) )
from sohstationviewer.model.reftek.reftek_data.header import \ from sohstationviewer.model.reftek.reftek_reader.header import \
get_rt130_packet_header get_rt130_packet_header
......
...@@ -6,11 +6,11 @@ import numpy ...@@ -6,11 +6,11 @@ import numpy
import obspy.core import obspy.core
from numpy.testing import assert_array_equal from numpy.testing import assert_array_equal
from sohstationviewer.model.reftek.reftek_data.core import ( from sohstationviewer.model.reftek.reftek_reader.core import (
DiscontinuousTrace, DiscontinuousTrace,
Reftek130, Reftek130,
) )
from sohstationviewer.model.reftek.reftek_data.header import NotRT130FileError from sohstationviewer.model.reftek.reftek_reader.header import NotRT130FileError
class TestDiscontinuousTrace(unittest.TestCase): class TestDiscontinuousTrace(unittest.TestCase):
......
import unittest import unittest
from sohstationviewer.model.reftek.reftek_data.header import ( from sohstationviewer.model.reftek.reftek_reader.header import (
parse_rt130_time, parse_rt130_time,
get_rt130_packet_header, NotRT130FileError, get_rt130_packet_header, NotRT130FileError,
) )
......
...@@ -2,13 +2,13 @@ import unittest ...@@ -2,13 +2,13 @@ import unittest
from unittest.mock import patch from unittest.mock import patch
from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker from sohstationviewer.model.mseed_data.record_reader_helper import Unpacker
from sohstationviewer.model.reftek.reftek_data.packet import \ from sohstationviewer.model.reftek.reftek_reader.packet import \
eh_et_payload_end_in_packet eh_et_payload_end_in_packet
from sohstationviewer.model.reftek.reftek_data.packet_readers import ( from sohstationviewer.model.reftek.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.reftek_data.packets import SOHExtendedHeader from sohstationviewer.model.reftek.reftek_reader.packets import SOHExtendedHeader
unpacker = Unpacker('>') unpacker = Unpacker('>')
...@@ -99,11 +99,11 @@ class TestReadDTPacket(unittest.TestCase): ...@@ -99,11 +99,11 @@ class TestReadDTPacket(unittest.TestCase):
self.data = b' ' * 1000 self.data = b' ' * 1000
uncompressed_patcher = patch( uncompressed_patcher = patch(
'sohstationviewer.model.reftek.reftek_data.packet_readers.' 'sohstationviewer.model.reftek.reftek_reader.packet_readers.'
'decode_uncompressed' 'decode_uncompressed'
) )
compressed_patcher = patch( compressed_patcher = patch(
'sohstationviewer.model.reftek.reftek_data.packet_readers.' 'sohstationviewer.model.reftek.reftek_reader.packet_readers.'
'decode_compressed' 'decode_compressed'
) )
self.mock_uncompressed = uncompressed_patcher.start() self.mock_uncompressed = uncompressed_patcher.start()
......
...@@ -6,15 +6,15 @@ from unittest.mock import patch ...@@ -6,15 +6,15 @@ 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.reftek_data.header import NotRT130FileError from sohstationviewer.model.reftek.reftek_reader.header import NotRT130FileError
from sohstationviewer.model.reftek.reftek_data.packet_readers import ( from sohstationviewer.model.reftek.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,
) )
from sohstationviewer.model.reftek.reftek_data.packets import ( from sohstationviewer.model.reftek.reftek_reader.packets import (
SOHPacket, SOHPacket,
EHETPacket, DTPacket, EHETPacket, DTPacket,
) )
from sohstationviewer.model.reftek.reftek_data.reftek_helper import ( from sohstationviewer.model.reftek.reftek_reader.reftek_helper import (
read_rt130_file, convert_packet_to_obspy_format, read_rt130_file, convert_packet_to_obspy_format,
) )
...@@ -29,7 +29,7 @@ class TestReadRT130File(unittest.TestCase): ...@@ -29,7 +29,7 @@ class TestReadRT130File(unittest.TestCase):
) )
eh_et_patcher = patch( eh_et_patcher = patch(
'sohstationviewer.model.reftek.reftek_data.reftek_helper.' 'sohstationviewer.model.reftek.reftek_reader.reftek_helper.'
'read_eh_et_packet', 'read_eh_et_packet',
wraps=read_eh_et_packet wraps=read_eh_et_packet
) )
...@@ -37,7 +37,7 @@ class TestReadRT130File(unittest.TestCase): ...@@ -37,7 +37,7 @@ 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.reftek_data.reftek_helper.' 'sohstationviewer.model.reftek.reftek_reader.reftek_helper.'
'read_dt_packet', 'read_dt_packet',
wraps=read_dt_packet wraps=read_dt_packet
) )
...@@ -45,7 +45,7 @@ class TestReadRT130File(unittest.TestCase): ...@@ -45,7 +45,7 @@ class TestReadRT130File(unittest.TestCase):
self.addCleanup(dt_patcher.stop) self.addCleanup(dt_patcher.stop)
soh_patcher = patch( soh_patcher = patch(
'sohstationviewer.model.reftek.reftek_data.reftek_helper.' 'sohstationviewer.model.reftek.reftek_reader.reftek_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