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-47736 : Make preloaded_SsObjects optional for ssSingleFrameAssociation #253

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

Gerenjie
Copy link
Contributor

No description provided.

Copy link
Member

@kfindeisen kfindeisen left a 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):
Copy link
Member

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.

Copy link
Member

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
Copy link
Member

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. 😬

Comment on lines 129 to 130
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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.

@Gerenjie Gerenjie merged commit 5075396 into main Nov 22, 2024
2 checks passed
@Gerenjie Gerenjie deleted the tickets/DM-47736 branch November 22, 2024 02:37
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.

2 participants