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
7598ecd2
Commit
7598ecd2
authored
1 year ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused test code
parent
a798964c
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/core.py
+0
-10
0 additions, 10 deletions
sohstationviewer/model/reftek/reftek_data/core.py
sohstationviewer/model/reftek/reftek_data/header.py
+0
-8
0 additions, 8 deletions
sohstationviewer/model/reftek/reftek_data/header.py
with
0 additions
and
18 deletions
sohstationviewer/model/reftek/reftek_data/core.py
+
0
−
10
View file @
7598ecd2
...
@@ -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()
This diff is collapsed.
Click to expand it.
sohstationviewer/model/reftek/reftek_data/header.py
+
0
−
8
View file @
7598ecd2
...
@@ -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)
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