Skip to content
Snippets Groups Projects

Resolve "parameterized eos sampling"

Merged Matthew Carney requested to merge matthew.carney/bilby:369-eos-sampling into master
3 files
+ 19
26
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
5
@@ -154,7 +154,6 @@ class TabularEOS(EOS):
else:
return table
@profile
def e_of_p(self, p, interp_type='CubicSpline'):
"""
Find value of epsilon(p)
@@ -172,7 +171,6 @@ class TabularEOS(EOS):
else:
print('Interpolation scheme must be linear or CubicSpline')
@profile
def p_of_h(self, h, interp_type='CubicSpline'):
"""
Find p(h)
@@ -189,7 +187,6 @@ class TabularEOS(EOS):
else:
print('Interpolation scheme must be linear or CubicSpline')
@profile
def e_of_h(self, h, interp_type='CubicSpline'):
"""
Find epsilon(h)
@@ -335,7 +332,7 @@ class TabularEOS(EOS):
# Ensure valid units
if xunits not in list(conversion_dict[xname].keys()) or yunits not in list(conversion_dict[yname].keys()):
s = '''
Invalid unit system. Valid variable-unit pairs are:
Invalid unit system. Valid variable-unit pairs are:
p: {p_units}
e: {e_units}
rho: {rho_units}
@@ -708,7 +705,7 @@ class EOSFamily(object):
# Ensure valid units
if xunits not in list(conversion_dict[xname].keys()) or yunits not in list(conversion_dict[yname].keys()):
s = '''
Invalid unit system. Valid variable-unit pairs are:
Invalid unit system. Valid variable-unit pairs are:
m: {m_units}
r: {r_units}
l: {l_units}.
Loading