Unable to set the UniformComovingVolume prior maximum manually
I'm loading the BNS prior set from the default prior, but want to reduce the maximum distance afterwards. It seems to change in the definition, but not when I try to sample the prior:
20:56 bilby INFO : Running bilby version: 0.4.0: (CLEAN) 6d75938a 2019-02-27 23:09:11 -0600
>>> priors = bilby.gw.prior.PriorDict(filename='/home/sylvia.biscoveanu/bilby_fork/bilby/gw/prior_files/binary_neutron_stars.prior')
>>> priors['luminosity_distance']
UniformComovingVolume(minimum=10.0, maximum=500.0, cosmology=FlatLambdaCDM(name="Planck15", H0=67.7 km / (Mpc s), Om0=0.307, Tcmb0=2.725 K, Neff=3.05, m_nu=[0. 0. 0.06] eV, Ob0=0.0486), name='luminosity_distance', latex_label='$d_L$', unit=Unit("Mpc"))
>>> priors['luminosity_distance'].maximum=80.
>>> priors['luminosity_distance']
UniformComovingVolume(minimum=10.0, maximum=80.0, cosmology=FlatLambdaCDM(name="Planck15", H0=67.7 km / (Mpc s), Om0=0.307, Tcmb0=2.725 K, Neff=3.05, m_nu=[0. 0. 0.06] eV, Ob0=0.0486), name='luminosity_distance', latex_label='$d_L$', unit=Unit("Mpc"))
>>> priors['luminosity_distance'].sample()
402.3329160612849
When I edit the file to the maximum I want and then load it, the sample function gives me something in the right range, so that's a fine way around this issue, but the behavior is a bit weird.