Skip to content
Snippets Groups Projects
Commit 22a924f8 authored by Hal Simpson's avatar Hal Simpson
Browse files

Ignore empty channels

parent 2b7cc68b
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,9 @@ class IAGA2002Parser(object):
self.parse_comments()
self.times = self._parsedata[0]
for channel, data in zip(self.channels, self._parsedata[1:]):
#ignore empty channels
if data.count(data[0]) == len(data):
continue
data = numpy.array(data, dtype=numpy.float64)
# filter empty values
data[data == EIGHTS] = numpy.nan
......
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