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-37865: Remove unused parameters from deferred dataset handle get calls #752

Merged
merged 4 commits into from Feb 7, 2023

Conversation

timj
Copy link
Member

@timj timj commented Feb 6, 2023

datasetType and immediate parameters were for gen2 but will imminently not be allowed in gen3 (they are currently ignored).

Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

Apologies for not catching all these before in the big removal. I do note that the "fakes" code is all going away; and the bright star stamp code is completely bit-rotted. One comment on task initialization with a butler.

@@ -539,7 +539,7 @@ def __init__(self, butler=None, schema=None, peakSchema=None, refObjLoader=None,
schema = initInputs['inputSchema'].schema
if schema is None:
assert butler is not None, "Neither butler nor schema is defined"
schema = butler.get(self.config.coaddName + self.inputCatalog + "_schema", immediate=True).schema
schema = butler.get(self.config.coaddName + self.inputCatalog + "_schema").schema
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait, are tasks ever initialized with a butler in gen3?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was wondering. The code is clearly never called because if it was called it would break... I wasn't brave enough to remove the butler parameter completely from the 8 places that use it but maybe I should.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think I want to get into that on this ticket though.

These were used in gen2 but are no longer relevant.
This has not been allowed for a long time and suggests that
we have no code coverage of these lines.
It was reliant on a gen2 dataset handle and is not used
in any gen3 code.
@timj timj merged commit dc3b911 into main Feb 7, 2023
@timj timj deleted the tickets/DM-37865 branch February 7, 2023 01:04
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

2 participants