Skip to content

Commit

Permalink
fix bug when reading .mod files which have comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simonguichandut committed Oct 19, 2021
1 parent 1c778be commit 3ca6aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa_reader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def pythonize_number(num_string):
self.header_names = []
self.header_data = {}
while not found_blank_line:
name, val = [datum.strip() for datum in lines[i].split()]
name, val = [datum.strip() for datum in lines[i].split()[:2]]
self.header_data[name] = eval(pythonize_number(val))
self.header_names.append(name)
i += 1
Expand Down

0 comments on commit 3ca6aaf

Please sign in to comment.