-
Notifications
You must be signed in to change notification settings - Fork 15
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 options to disable sky model, and read noise, bias level, and dark current #224
add options to disable sky model, and read noise, bias level, and dark current #224
Conversation
…st version of header info
…_noise_and_bias_option
Thanks @jchiang87. We've been trying to run this update with a simple instcat containing a single point source and a single extended source. The new code runs with the extended source, but fails on the point source with the error message below. We believe we've tracked this back to this line in galSimInterpreter.py, which is setting
|
We hacked this line in
This seems to work (or at least imsim runs), but seems unsafe. |
I have a plan for doing this correctly. I'll try to find time to do it today. |
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.
Code so far looks good.
I made one forward-looking suggestion.
@@ -4,6 +4,10 @@ dark_current = 0.02 | |||
bias_level = 1000. | |||
pcti = 1e-6 | |||
scti = 1e-6 | |||
disable_readnoise_bias_darkcurrent = False |
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.
Since we are adding this functionality now, perhaps we should explicitly allow reach of read, noise, bias, and dark current to be turned off.
So there would be:
disable_readnoise
disable_bias
disable_darkcurrent
If we set this pattern up you might imagine other things in the future too (e.g. x-talk or CTE). This way you could choose to have only one on for studies.
I see this would require a little more changes though since currently readnoise and bias are added in one step in one routine.
Also add version info to raw file primary HDU