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

DM-20039: add fakeSources from a generator #326

Merged
merged 3 commits into from Dec 4, 2019
Merged

Conversation

sr525
Copy link
Contributor

@sr525 sr525 commented Nov 14, 2019

No description provided.

Copy link
Contributor

@natelust natelust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to change the documentation in addFakeSources method. maybe its best to do
...
fakeImages: typing.Iterator [tuple [lsst.afw.image.Image, lsst.geom.Point2D]]

Additionally John left some comments on Jira that should be looked at. Grab me if you need git help splitting up the commits.

@arunkannawadi arunkannawadi force-pushed the tickets/DM-20039 branch 2 times, most recently from 857d3f2 to 05bfd66 Compare November 14, 2019 22:53
@arunkannawadi arunkannawadi changed the title Tickets/DM-20039 DM-20039: add fakeSources from a generator Nov 15, 2019
@@ -373,6 +374,7 @@ def trim(row):

return fakeCat[fakeCat.apply(trim, axis=1)]


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this new blank line should not be here

@@ -531,8 +522,8 @@ def addFakeSources(self, image, fakeImages, sourceType):
----------
image : `lsst.afw.image.exposure.exposure.ExposureF`
The image into which the fake sources should be added
fakeImages : `list`
A list of tuples of `lsst.afw.image.ImageF` and `lsst.geom.Point2D,
fakeImages : `typing.Iterator`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After verifying with jonathan I think this should read
fakeImages : typing.Iterator [tuple ['lsst.afw.image.ImageF, lsst.geom.Point2d`]]

with the description line telling you what the image and point should be. i.e. "An iterator of tuples that contain images of fake sources, and the point at which they are to be inserted"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants