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

and now the change is saved in committed file

parent 1927dab8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -68,9 +68,9 @@ class StFile(object):
def __init__(self, filename):
with open (filename) as fid:
txt = fid.read()
# Some files sat
no_maindata_sets = int(txt.strip()[0])
assert no_maindata_sets == txt.count("#")
# Some files starts with first set ("#1...") with out specifying number of sets
# no_maindata_sets = int(txt.strip()[0])
# assert no_maindata_sets == txt.count("#")
self.main_data_sets = {}
for mset in txt.split("#")[1:]:
mset_nr = int(mset.strip().split()[0])
......
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