Skip to content
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

RCAL-832 L3 Generation #137

Merged
merged 25 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions romanisim/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@

def add_objects_to_image(image, objlist, xpos, ypos, psf,
flux_to_counts_factor, convtimes=None,
bandpass=None, filter_name=None,
bandpass=None, filter_name=None, add_noise=False,
rng=None, seed=None):
"""Add sources to an image.

Expand Down Expand Up @@ -287,6 +287,8 @@
stamp = final.drawImage(
bandpass, center=image_pos, wcs=pwcs,
method='phot', rng=rng)
if add_noise:
stamp.addNoise(galsim.PoissonNoise(rng))

Check warning on line 291 in romanisim/image.py

View check run for this annotation

Codecov / codecov/patch

romanisim/image.py#L291

Added line #L291 was not covered by tests
else:
try:
stamp = final.drawImage(center=image_pos,
Expand Down Expand Up @@ -314,7 +316,8 @@
sky=None, dark=None,
flat=None, xpos=None, ypos=None,
ignore_distant_sources=10, bandpass=None,
filter_name=None, rng=None, seed=None):
filter_name=None, rng=None, seed=None,
**kwargs):
"""Add some simulated counts to an image.

No Roman specific code allowed! To do this, we need to have an image
Expand Down
Loading
Loading