Incorporate det into sca#30
Conversation
|
@yuedong0607 could you move the changes related to the coadd level simulation to another branch? Is the work on incorporating detector physics done and ready for some testing? |
68096c4 to
270869e
Compare
| sky_subtract: False | ||
| sky_subtract: True | ||
|
|
||
| dither_from_file: /hpc/home/yf194/Work/final_sims_2023/Roman_WAS_obseq_11_1_23_ditherlist.txt |
There was a problem hiding this comment.
This is not readable. I also have changes in the prism branch that make this optional.
There was a problem hiding this comment.
Hi Arun, this file is needed by the persistence module to select the neighboring dithers. Any suggestions on how to make this more readable? Could you point me to the changes in prism branch that you have mentioned?
There was a problem hiding this comment.
I just meant that this file in your home directory is readable only by you, not others.
| # sky_image /= roman.gain | ||
| # sky_image.quantize() | ||
| # image -= sky_image | ||
|
|
There was a problem hiding this comment.
I don't want us to use commenting out code as a way to keeping history. Git does that for us. Just delete these lines.
There was a problem hiding this comment.
have removed most of the commented old codes
|
Is this ready for review? If so, can you rebase this branch on to the |
|
Ah, never mind. The Also, I don't see this branch rebased. You've pulled in the |
2ae453f to
957f4e3
Compare
arunkannawadi
left a comment
There was a problem hiding this comment.
I have passed through the code once and I've given my first round of comments so you could work on them right away. I will give another round of review with some additional science inputs.
| import galsim.roman as roman | ||
|
|
||
|
|
||
| class background(roman_effects): |
There was a problem hiding this comment.
Could you use CamelCase for all class names? So this would read as follows
| class background(roman_effects): | |
| class Background(RomanEffects): |
| import numpy as np | ||
| import fitsio as fio | ||
| import galsim.roman as roman | ||
| from roman_imsim.effects import roman_effects |
There was a problem hiding this comment.
| from roman_imsim.effects import roman_effects | |
| import .roman_effects |
There was a problem hiding this comment.
and similarly elsewhere.
| from .utils import sca_number_to_file | ||
|
|
||
|
|
||
| class interpix_cap(roman_effects): |
There was a problem hiding this comment.
| class interpix_cap(roman_effects): | |
| class IPC(roman_effects): |
IPC or InterPixelCapacitance
|
|
||
| # # [TODO] | ||
| # break | ||
|
|
There was a problem hiding this comment.
Remove these lines
| model: lab_model | ||
| sky_subtract: False | ||
|
|
||
| # dither_from_file: /hpc/home/yf194/Work/final_sims_2023/Roman_WAS_obseq_11_1_23_ditherlist.txt |
There was a problem hiding this comment.
| # dither_from_file: /hpc/home/yf194/Work/final_sims_2023/Roman_WAS_obseq_11_1_23_ditherlist.txt |
| import roman_imsim.effects as effects | ||
|
|
||
|
|
||
| class roman_effects(object): |
There was a problem hiding this comment.
| class roman_effects(object): | |
| class RomanEffects: |
or more accurately RomanInstrumentalEffects. Long names are fine if they are more accurate and descriptive.
| from .utils import sca_number_to_file | ||
|
|
||
|
|
||
| class saturate(roman_effects): |
There was a problem hiding this comment.
| class saturate(roman_effects): | |
| class Saturation(RomanEffects): |
Let's use nouns for all the effects.
| from .utils import get_pointing | ||
|
|
||
|
|
||
| class setup_sky(object): |
There was a problem hiding this comment.
Should this live inside roman_imsim.effects? It's not an effect itself. This module should live one directory above.
| import galsim.roman as roman | ||
|
|
||
|
|
||
| class recip_failure(roman_effects): |
There was a problem hiding this comment.
| class recip_failure(roman_effects): | |
| class ReciprocityFailure(RomanEffects): |
| "%s hasn't been implemented yet, the simple model will be applied for %s" | ||
| % (str(self.params["model"]), str(self.__class__.__name__)) | ||
| ) | ||
| self.model = self.simple_model |
There was a problem hiding this comment.
For effects that do not have a lab_model implemented, we need to emit a warning OR error saying that they are not yet implemented if they are set to lab_model in the config file.
* Enable selection of different models for each effect via the configuration YAML. * Implementing a nested class structure in detector_effects.py. * Testing the implementation of QE and BFE effects.
…g within its child classes.
* removing some commented-out codes * move setup_sky to RomanEffects file.
1b39b5d to
0346889
Compare
|
I ran both this branch and main using the following noise setup: this branch: the only differences I noticed was the date parameter given to getSkyLevel() call (see issue #68) |

This is NOT yet reviewed and is NOT ready to be merged