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

Revert "Fix problem with detecting data type"

This reverts commit 41a9988b.
parent 41a9988b
No related branches found
No related tags found
No related merge requests found
Pipeline #2939 passed with stage
in 2 minutes and 56 seconds
......@@ -268,6 +268,10 @@ def get_data_type_from_file(
'VP', 'VL', 'VL', 'VH',
'UN', 'UP', 'UL', 'UH']
if any(x in path2file.name for x in wf_chan_posibilities):
# Skip checking waveform files which aren't signature channels
return None, False
file = open(path2file, 'rb')
chans_in_stream = set()
data_type = None
......@@ -286,9 +290,6 @@ def get_data_type_from_file(
return
chan = record.record_metadata.channel
if any([wf_pattern in chan for wf_pattern in wf_chan_posibilities]):
# Skip checking waveform files which aren't signature channels
return None, False
if is_multiplex is None:
chans_in_stream.add(chan)
if len(chans_in_stream) > 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