Skip to content
Snippets Groups Projects
Commit e9c03045 authored by Colm Talbot's avatar Colm Talbot
Browse files

add unit to UniformComovingVolume prior

parent c1c5a7d9
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ from scipy.interpolate import UnivariateSpline
class UniformComovingVolume(FromFile):
def __init__(self, minimum=None, maximum=None, name='luminosity distance', latex_label='$d_L$'):
def __init__(self, minimum=None, maximum=None,
name='luminosity distance', latex_label='$d_L$', unit='Mpc'):
"""
Parameters
......@@ -24,7 +25,7 @@ class UniformComovingVolume(FromFile):
"""
file_name = os.path.join(os.path.dirname(__file__), 'prior_files', 'comoving.txt')
FromFile.__init__(self, file_name=file_name, minimum=minimum, maximum=maximum, name=name,
latex_label=latex_label, unit='Mpc')
latex_label=latex_label, unit=unit)
class AlignedSpin(Interped):
......
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