-
Notifications
You must be signed in to change notification settings - Fork 13
ADConversion effect #455
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
ADConversion effect #455
Conversation
|
Renaming the Quantization to ADConversion sounds good, because that name is closer to the physical process. However, if it also applies the gain, then the effect should always be applied, also when NDIT > 1 or when AutoExposure is used, but the quantization part should not. (Or a similar solution.) This is a draft PR, so you probably already thought of that. I think that is what your |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #455 +/- ##
==========================================
+ Coverage 76.74% 76.81% +0.06%
==========================================
Files 70 70
Lines 8574 8599 +25
==========================================
+ Hits 6580 6605 +25
Misses 1994 1994 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Still not entirely comfortable with this, but that may have more to do with the uncertainty of how our detectors (in METIS and MICADO) are actually read out and written to files rather than with the code itself. Also our sparse knowledge of actual gain values is more of a matter for irdb than for Scopesim. |
|
Mentioned this offline, but just so we don't forget: This should be in the next minor version, because it will break IRDB packages still referring to a |
teutoburg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We talked about this for long enough I think, let's go 👍
| #if not np.issubdtype(new_dtype, np.integer): | ||
| # logger.warning("Setting digitized data to dtype %s, which is not " | ||
| # "an integer subtype.", new_dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To comment on the "(why?)" in the commit message: IIRC the original idea with the Quantization (sic!) was that it should normally produce an integer dtype, because it's "counting whole electrons" or something. So I think the warning was along the lines of "You're applying quantization to produce whole integer numbers of something but you're not actually creating integers."
But I'm fine with removing this, now that we don't call it Quantization any more. I guess the ADConversion can conceptually produce fractional numbers in the case of an average exposure, so probably the original thought behind this warning is no longer valid anyway.
|
Thank you @oczoske ! This is so much better and more natural than what we had. |
The
ADConversioneffect simulates the analogue-digital converter of a detector:BITPIX=16.The implementation expands the existing
Quantization(which imho is a misnomer).This PR is accompanied by AstarVienna/irdb#189.