-
Notifications
You must be signed in to change notification settings - Fork 3
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-47736 : Make preloaded_SsObjects optional for ssSingleFrameAssociation #253
Conversation
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.
Looks good, but please make sure the docs are up to date.
@@ -109,7 +110,7 @@ def run(self, | |||
exposure, | |||
sourceTable, | |||
band, | |||
solarSystemObjectTable): | |||
solarSystemObjectTable=None): |
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.
Please add "or None
" to the docstring.
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.
Please add entries for exposure
and sourceTable
as well, on a separate commit.
# Associate DiaSources with DiaObjects | ||
associatedSsSources = self.associateSources(sourceTable, solarSystemObjectTable, exposure) | ||
if solarSystemObjectTable is None: | ||
associatedSsSources = None |
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.
It sounds like this still counts as a success for the purposes of pipeline tracking, so I'd rather raise NoWorkFound
just to be explicit that the task did nothing.
Either way, we'll have to be careful that downstream tasks take ssSingleFrameAssociatedSources
as an optional input. 😬
e1034fe
to
2c65715
Compare
solarSystemObjectTable : `pandas.DataFrame` | ||
Preloaded Solar System objects expected to be visible in the image. | ||
Preloaded Solar System objects expected to be visible in the image, or None. |
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.
solarSystemObjectTable : `pandas.DataFrame` | |
Preloaded Solar System objects expected to be visible in the image. | |
Preloaded Solar System objects expected to be visible in the image, or None. | |
solarSystemObjectTable : `pandas.DataFrame` or `None` | |
Preloaded Solar System objects expected to be visible in the image. |
bd4afca
to
b0842d2
Compare
No description provided.