Skip to content

Commit 1440417

Browse files
committed
Some comments
1 parent b419936 commit 1440417

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

roman_imsim/sca.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ def buildImage(self, config, base, image_num, obj_num, logger):
218218
del full_array
219219
gc.collect()
220220
# Decide what to do with readout based on resultant strategy
221-
if (np.array([item for sub in strategy for item in sub]) == dt).any():
222-
if (np.array(strategy[resultant_i]) == dt).any():
221+
if (np.array([item for sub in strategy for item in sub]) == dt).any(): #does this dt exist in strategy
222+
if (np.array(strategy[resultant_i]) == dt).any(): #is it in our current resultant
223223
readout_im = full_image.copy()
224224
readout_im = self.addNoiseToImage(readout_im, config, base, logger)
225225
resultant_buffer.extend([readout_im])
@@ -229,7 +229,7 @@ def buildImage(self, config, base, image_num, obj_num, logger):
229229
del resultant_buffer[-1]
230230
gc.collect()
231231

232-
if np.array(strategy[resultant_i][-1]) == dt:
232+
if np.array(strategy[resultant_i][-1]) == dt: #is thisdt the last in our current resultant
233233
divisor = len(np.array(strategy[resultant_i]))
234234
#divide summed images by the length of resultant to get the average and apply headers to the image array
235235
#TODO:apply header to the image array

roman_imsim/stamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def draw(self, prof, image, method, offset, config, base, logger):
487487
save_photons=True,
488488
)
489489
photons = im.photons
490-
photons.x+= im.center.x
490+
photons.x+= im.center.x#may be a better way
491491
photons.y+= im.center.y
492492
photons.flux=1
493493
else:

0 commit comments

Comments
 (0)