Skip to content
Snippets Groups Projects
Commit 90dd3e84 authored by Roland Haas's avatar Roland Haas
Browse files

POWER: add very crude handling for comments

parent b28b783f
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ def getCutoffFrequency(sim_name):
with open(filename) as file:
contents = file.readlines()
for line in contents:
line_elems = line.split(" ")
line_elems = re.sub("#.*", "", line).split(" ")
if(line_elems[0] == "TwoPunctures::par_b"):
par_b = float(line_elems[-1])
if(line_elems[0] == "TwoPunctures::center_offset[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