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
Conversation
50e9f13
to
a239e99
Compare
There was a problem hiding this 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.
a239e99
to
8710d14
Compare
8710d14
to
e921c6f
Compare
857d3f2
to
05bfd66
Compare
@@ -373,6 +374,7 @@ def trim(row): | |||
|
|||
return fakeCat[fakeCat.apply(trim, axis=1)] | |||
|
|||
|
There was a problem hiding this comment.
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` |
There was a problem hiding this comment.
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"
05bfd66
to
feba102
Compare
feba102
to
afc6bed
Compare
afc6bed
to
7852719
Compare
No description provided.