Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
2436d75e
Commit
2436d75e
authored
1 year ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Fix type hint
parent
e5156057
No related branches found
No related tags found
1 merge request
!139
Change the way RT130 data is read for better performance
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sohstationviewer/model/reftek/reftek_data/dt_packet.py
+2
-2
2 additions, 2 deletions
sohstationviewer/model/reftek/reftek_data/dt_packet.py
sohstationviewer/model/reftek/reftek_data/packet.py
+3
-1
3 additions, 1 deletion
sohstationviewer/model/reftek/reftek_data/packet.py
with
5 additions
and
3 deletions
sohstationviewer/model/reftek/reftek_data/dt_packet.py
+
2
−
2
View file @
2436d75e
import
dataclasses
import
dataclasses
from
typing
import
Any
from
typing
import
Any
,
Tuple
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
PacketHeader
from
sohstationviewer.model.reftek.reftek_data.header
import
PacketHeader
...
@@ -80,7 +80,7 @@ def decode_compressed(packet: bytes, data_format: str, unpacker: Unpacker
...
@@ -80,7 +80,7 @@ def decode_compressed(packet: bytes, data_format: str, unpacker: Unpacker
def
read_dt_packet
(
packet
:
bytes
,
unpacker
:
Unpacker
def
read_dt_packet
(
packet
:
bytes
,
unpacker
:
Unpacker
)
->
t
uple
[
DTExtendedHeader
,
Any
]:
)
->
T
uple
[
DTExtendedHeader
,
Any
]:
"""
"""
Process a DT packet and get its extended header and first data point.
Process a DT packet and get its extended header and first data point.
:param packet: the bytes that make up the given DT packet.
:param packet: the bytes that make up the given DT packet.
...
...
This diff is collapsed.
Click to expand it.
sohstationviewer/model/reftek/reftek_data/packet.py
+
3
−
1
View file @
2436d75e
...
@@ -9,6 +9,8 @@ Suggested updates to obspy.io.reftek.packet:
...
@@ -9,6 +9,8 @@ Suggested updates to obspy.io.reftek.packet:
Maeva Pourpoint IRIS/PASSCAL
Maeva Pourpoint IRIS/PASSCAL
"""
"""
from
typing
import
List
import
numpy
import
numpy
import
obspy.io.reftek.packet
as
obspy_rt130_packet
import
obspy.io.reftek.packet
as
obspy_rt130_packet
...
@@ -127,7 +129,7 @@ class EHPacket(obspy_rt130_packet.EHPacket):
...
@@ -127,7 +129,7 @@ class EHPacket(obspy_rt130_packet.EHPacket):
"
\n\t
"
.
join
(
info
))
"
\n\t
"
.
join
(
info
))
return
info
return
info
def
eh_et_info
(
self
,
nbr_DT_samples
:
int
)
->
l
ist
[
str
]:
def
eh_et_info
(
self
,
nbr_DT_samples
:
int
)
->
L
ist
[
str
]:
"""
"""
Compile EH and ET info to write to log file.
Compile EH and ET info to write to log file.
Returns list of strings.
Returns list of strings.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment