Skip to content
Snippets Groups Projects
Commit cd13f3ef authored by Kien Le's avatar Kien Le
Browse files

Remove commented-out code

parent 6347ce00
No related branches found
No related tags found
No related merge requests found
...@@ -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)
......
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