Skip to content

dev-spectral_weights - #131

Closed
kateharborne wants to merge 3 commits into
mainfrom
dev-spectral_weights
Closed

dev-spectral_weights#131
kateharborne wants to merge 3 commits into
mainfrom
dev-spectral_weights

Conversation

@kateharborne

Copy link
Copy Markdown
Owner

Fix for bug #130 - When using the BC03 templates, the lowest age bin is associated with 0. When interpolating the spectral weights, we log the age bins (making the lowest age bin -Inf) which then causes error with the interpolation.

We now check for infinite values, retuning them to 0 before interpolating in log space, such that NaN's are not returned.

Added tests:

  • Check that particles with the lowest ages do not produce a spectral weight with NaN in the list.

…log behaviour to avoid infinite errors in interpolation.
…ticles have the lowest age bin in the BC03 templates.
@kateharborne kateharborne self-assigned this Aug 22, 2025
@kateharborne kateharborne linked an issue Aug 22, 2025 that may be closed by this pull request
@kateharborne

Copy link
Copy Markdown
Owner Author

Need to rebase with main after changes to the GitHub actions workflow file

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.

NaN values in spectral weights

1 participant