Commit 90dd3e84 authored by Roland Haas's avatar Roland Haas

POWER: add very crude handling for comments

parent b28b783f
......@@ -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]"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment