Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for truncated redshift distribution #56

Conversation

P-1884
Copy link
Contributor

@P-1884 P-1884 commented Feb 20, 2024

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.

@P-1884 P-1884 marked this pull request as ready for review February 20, 2024 12:43
Copy link
Collaborator

@smericks smericks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on this! The only change I would request is can you remove the updates to .gitignore?

@P-1884 P-1884 closed this Jul 7, 2024
@P-1884 P-1884 deleted the Fix-for-Truncated-redshift-distribution branch July 7, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants