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

avoid crash in _prepare_for_brier by expanding limits if needed. #239

Open
eacharles opened this issue Feb 5, 2025 · 0 comments
Open

avoid crash in _prepare_for_brier by expanding limits if needed. #239

eacharles opened this issue Feb 5, 2025 · 0 comments

Comments

@eacharles
Copy link
Collaborator

Evaluation modules are failing at this line when the testing sample include any true redshifts outside the expected limits. The easiest solution is just to expand the limits to match the true redshift range. Since the binning grid is computed using a fixed size grid, this will work fine.

raise ValueError(f"Input truth values exceed the defined limits ({min(truth)}, {max(truth)}) ({limits[0]} {limits[1]})")

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

No branches or pull requests

1 participant