swagnercarena / paltas

Conduct simulation-based inference on strong gravitational lensing systems.
MIT License
13 stars 12 forks source link

Fix for truncated redshift distribution #56

Closed P-1884 closed 1 month ago

P-1884 commented 6 months ago

Fix for minor bug for the RedshiftsTruncNorm class

Description of Bug: The lower source redshift truncation value (self.z_source_min) is updated dependent on the lens redshift, but is not reset to the default/inputted value after each draw. Therefore the truncation value gradually increases as more draws are made. Fix: The lower truncation value is now set to the inputted value (self.z_source_min_default) in the cases that it is greater than the lens redshift.