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

Add Quantization effect to METIS detector yamls #170

Merged
merged 3 commits into from
May 14, 2024
Merged

Conversation

teutoburg
Copy link
Contributor

No description provided.

@teutoburg teutoburg added enhancement New feature or request instrument-specific Limited to a certain IRDB instrument package labels Apr 15, 2024
@teutoburg teutoburg self-assigned this Apr 15, 2024
@teutoburg teutoburg marked this pull request as draft April 15, 2024 14:25
@teutoburg teutoburg marked this pull request as ready for review April 16, 2024 14:21
Copy link
Collaborator

@hugobuddel hugobuddel left a comment

Choose a reason for hiding this comment

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

Looks good! But we can't test whether it works, because the CI fails due to #168. Maybe we should fix that first, because it would not surprise me if the quantization will also break some notebooks.

Try putting quantization as the final effect to avoid numpy issues that otherwise occur when adding floats to ints.
@teutoburg
Copy link
Contributor Author

At least one METIS notebook fails with this. I'll get the fh/rtd branch merged first, because that one is modifying those anyway...

@teutoburg
Copy link
Contributor Author

@hugobuddel
Copy link
Collaborator

We want to release the METIS Simulations tomorrow (Wednesday), so I'll fix this and merge it.

@hugobuddel
Copy link
Collaborator

casting to uint currently overflows to MAXINT, that is not supposed to happen. Well, negative fluxes shouldn't happen, but if they happen, they shouldn't be cast to extremely high values

@hugobuddel
Copy link
Collaborator

Fixed the overflow in AstarVienna/ScopeSim#414

@hugobuddel hugobuddel merged commit cff00ef into dev_master May 14, 2024
18 checks passed
@teutoburg teutoburg deleted the fh/kwant branch May 15, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request instrument-specific Limited to a certain IRDB instrument package
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants