Commit fcaccc99 authored by Roland Haas's avatar Roland Haas

POWER: add to_bool function

parent 90dd3e84
......@@ -228,6 +228,16 @@ def angular_momentum(x, q, m, chi1, chi2, LInitNR):
* x**3.))
return l - LInitNR
# Convert Cacus truth values to python's
def to_bool(s):
s = tolower(s)
if s in ["true", "yes", "1"]:
return True
elif s in ["false", "no", "0"]:
return False
else:
raise(ValueError("Not a boolean values: %s" % s))
#Get cutoff frequency
def getCutoffFrequency(sim_name):
"""
......
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