Skip to content

Commit c067e4e

Browse files
committed
Fix for weird neaspec data with random whitespaces
1 parent b5a751e commit c067e4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pySNOM/readers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ def read_header(self):
311311
break
312312
params = self.lineparser(line, params)
313313
channels = line.split("\t")
314+
channels = [
315+
channel.strip() for channel in channels
316+
]
314317

315318
return channels, params
316319

0 commit comments

Comments
 (0)