@@ -44,8 +44,8 @@ def setup(self, config, base, image_num, obj_num, ignore, logger):
4444 "mjd" : float ,
4545 "exptime" : float ,
4646 "coadd_file" : str ,
47- "white_scale " : float ,
48- "pink_scale " : float ,
47+ "white_noise_weight " : float ,
48+ "pink_noise_weight " : float ,
4949 "pixel_scale" : float ,
5050 }
5151 opt = {
@@ -97,8 +97,8 @@ def setup(self, config, base, image_num, obj_num, ignore, logger):
9797 base ["bandpass" ] = galsim .config .BuildBandpass (base ["image" ], "bandpass" , base , logger = logger )
9898
9999 self .coadd_hdu = fits .open (params ["coadd_file" ])
100- self .white_scale = params ["white_noise_weight" ]
101- self .pink_scale = params ["pink_noise_weight" ]
100+ self .white_noise_weight = params ["white_noise_weight" ]
101+ self .pink_noise_weight = params ["pink_noise_weight" ]
102102
103103 # return roman.n_pix, roman.n_pix
104104 return int (self .coadd_hdu [0 ].header ["NAXIS1" ]), int (self .coadd_hdu [0 ].header ["NAXIS2" ])
@@ -230,8 +230,8 @@ def addNoise(self, image, config, base, image_num, obj_num, current_var, logger)
230230
231231 noise_white = self .coadd_hdu [0 ].data [0 ][11 ]
232232 noise_pink = self .coadd_hdu [0 ].data [0 ][10 ]
233- image += noise_white * self .white_scale
234- image += noise_pink * self .pink_scale
233+ image += noise_white * self .white_noise_weight
234+ image += noise_pink * self .pink_noise_weight
235235
236236
237237# Register this as a valid type
0 commit comments