nuclear-multimessenger-astronomy / nmma

A pythonic library for probing nuclear physics and cosmology with multimessenger analysis
https://nuclear-multimessenger-astronomy.github.io/nmma/
GNU General Public License v3.0
30 stars 58 forks source link

Fix datatype of redshift #195

Closed haukekoehn closed 1 year ago

haukekoehn commented 1 year ago

The convert_to_multimessenger_parameters function used to return the redshift values as astropy Quantity objects. This caused issues later, when the sample arrays were copied that contained these redshift values, turning every sample parameter to astropy Quantity objects, which becomes problematic when finally writing the posterior samples to file.

Additionally a small bug fix induced by my previous update on how to load the EOS.