...
 
Commits (3)
......@@ -230,7 +230,7 @@ def angular_momentum(x, q, m, chi1, chi2, LInitNR):
# Convert Cacus truth values to python's
def to_bool(s):
s = tolower(s)
s = s.lower()
if s in ["true", "yes", "1"]:
return True
elif s in ["false", "no", "0"]:
......@@ -259,7 +259,7 @@ def getCutoffFrequency(sim_name):
with open(filename) as file:
contents = file.readlines()
for line in contents:
line_elems = re.sub("#.*", "", line).split(" ")
line_elems = re.sub("#.*", "", line.rstrip("\n")).split(" ")
if(line_elems[0] == "TwoPunctures::par_b"):
par_b = float(line_elems[-1])
if(line_elems[0] == "TwoPunctures::center_offset[0]"):
......@@ -292,7 +292,7 @@ def getCutoffFrequency(sim_name):
if(line_elems[0] == "initial-bh-puncture-adm-mass1"):
adm_m1 = float(line_elems[-1])
if(line_elems[0] == "initial-bh-puncture-adm-mass2"):
adm_m1 = float(line_elems[-1])
adm_m2 = float(line_elems[-1])
elif(out_files):
out_file = out_files[0]
with open(out_file) as file:
......