@@ -66,10 +66,10 @@ def setup(self, config, base, image_num, obj_num, ignore, logger):
6666 "sca_filepath" : str ,
6767 "sky_subtract" : bool ,
6868 "ignore_noise" : bool ,
69- ' save_diff' : bool ,
69+ " save_diff" : bool ,
7070 }
7171
72- logger .warning ("opt dict = %s" % (str (opt )))
72+ logger .warning ("opt dict = %s" % (str (opt )))
7373
7474 params = galsim .config .GetAllParams (config , base , req = req , opt = opt , ignore = ignore + extra_ignore )[0 ]
7575
@@ -106,9 +106,9 @@ def setup(self, config, base, image_num, obj_num, ignore, logger):
106106 # config['wcs'] = wcs
107107
108108 self .rng = galsim .config .GetRNG (config , base )
109- self .visit = int (base [' input' ][ ' obseq_data' ][ ' visit' ])
109+ self .visit = int (base [" input" ][ " obseq_data" ][ " visit" ])
110110
111- self .sca_filepath = params .get (' sca_filepath' , None )
111+ self .sca_filepath = params .get (" sca_filepath" , None )
112112
113113 # If user hasn't overridden the bandpass to use, get the standard one.
114114 if "bandpass" not in config :
@@ -238,19 +238,18 @@ def addNoise(self, image, config, base, image_num, obj_num, current_var, logger)
238238 if self .ignore_noise :
239239 return
240240
241- base [' current_noise_image' ] = base [' current_image' ]
241+ base [" current_noise_image" ] = base [" current_image" ]
242242 # rng = galsim.config.GetRNG(config, base)
243- logger .info (' image %d: Start RomanSCA detector effects' , base .get (' image_num' , 0 ))
243+ logger .info (" image %d: Start RomanSCA detector effects" , base .get (" image_num" , 0 ))
244244
245245 # create padded image
246- bound_pad = galsim .BoundsI (xmin = 1 , ymin = 1 ,
247- xmax = 4096 , ymax = 4096 )
246+ bound_pad = galsim .BoundsI (xmin = 1 , ymin = 1 , xmax = 4096 , ymax = 4096 )
248247 im_pad = galsim .Image (bound_pad )
249248 im_pad .array [4 :- 4 , 4 :- 4 ] = image .array [:, :]
250249
251- effects_list = self .base [' image' ][ ' add_effects' ].keys ()
250+ effects_list = self .base [" image" ][ " add_effects" ].keys ()
252251 for effect_name in effects_list :
253- args = (self .base [' image' ][ ' add_effects' ][effect_name ], self .base , self .logger , self .rng )
252+ args = (self .base [" image" ][ " add_effects" ][effect_name ], self .base , self .logger , self .rng )
254253 effect = getattr (roman_effects , effect_name )(* args )
255254 im_pad = effect .apply (image = im_pad )
256255
@@ -263,7 +262,7 @@ def addNoise(self, image, config, base, image_num, obj_num, current_var, logger)
263262 sky = roman_effects .setup_sky (self .base , self .logger , self .rng )
264263 sky_image = sky .get_sky_image ()
265264 image -= sky_image
266- sky .save_sky_img (outdir = self .base [' output' ][ ' dir' ])
265+ sky .save_sky_img (outdir = self .base [" output" ][ " dir" ])
267266
268267
269268# Register this as a valid type
0 commit comments