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
cd13f3ef
Commit
cd13f3ef
authored
1 year ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Remove commented-out code
parent
6347ce00
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/model/reftek/reftek_data/core.py
+0
-23
0 additions, 23 deletions
sohstationviewer/model/reftek/reftek_data/core.py
with
0 additions
and
23 deletions
sohstationviewer/model/reftek/reftek_data/core.py
+
0
−
23
View file @
cd13f3ef
...
@@ -216,29 +216,6 @@ class Reftek130(obspy_rt130_core.Reftek130):
...
@@ -216,29 +216,6 @@ class Reftek130(obspy_rt130_core.Reftek130):
# payload, so add it to stats as well..
# payload, so add it to stats as well..
tr
.
stats
.
reftek130
[
'
channel_number
'
]
=
channel_number
tr
.
stats
.
reftek130
[
'
channel_number
'
]
=
channel_number
tr
.
stats
.
starttime
=
UTCDateTime
(
ns
=
starttime
)
tr
.
stats
.
starttime
=
UTCDateTime
(
ns
=
starttime
)
"""
if component codes were explicitly provided, use them
together with the stream label
if component_codes is not None:
tr.stats.channel = (eh.stream_name.strip() +
component_codes[channel_number])
# otherwise check if channel code is set for the given
# channel (seems to be not the case usually)
elif eh.channel_code[channel_number] is not None:
tr.stats.channel = eh.channel_code[channel_number]
# otherwise fall back to using the stream label together
# with the number of the channel in the file (starting with
# 0, as Z-1-2 is common use for data streams not oriented
# against North)
else:
msg = (
"
No channel code specified in the data file
"
"
and no component codes specified. Using
"
"
stream label and number of channel in file as
"
"
channel codes.
"
)
warnings.warn(msg)
tr.stats.channel = (
eh.stream_name.strip() + str(channel_number))
"""
DS
=
self
.
_data
[
'
data_stream_number
'
][
0
]
+
1
DS
=
self
.
_data
[
'
data_stream_number
'
][
0
]
+
1
if
DS
!=
9
:
if
DS
!=
9
:
tr
.
stats
.
channel
=
"
DS%s-%s
"
%
(
DS
,
channel_number
+
1
)
tr
.
stats
.
channel
=
"
DS%s-%s
"
%
(
DS
,
channel_number
+
1
)
...
...
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