Skip to content
Snippets Groups Projects
Commit e9887975 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

fixed "#" issue in st_file

parent 97d71667
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class StFile(object): ...@@ -68,7 +68,7 @@ class StFile(object):
def __init__(self, filename): def __init__(self, filename):
with open (filename) as fid: with open (filename) as fid:
txt = fid.read() txt = fid.read()
no_maindata_sets = int(txt.strip()[0]) no_maindata_sets = int(txt.replace("#","").strip()[0])
assert no_maindata_sets == txt.count("#") assert no_maindata_sets == txt.count("#")
self.main_data_sets = {} self.main_data_sets = {}
for mset in txt.split("#")[1:]: for mset in txt.split("#")[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