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-46776: Add butler zip-from-graph command #452

Merged
merged 5 commits into from
Oct 30, 2024
Merged

DM-46776: Add butler zip-from-graph command #452

merged 5 commits into from
Oct 30, 2024

Conversation

timj
Copy link
Member

@timj timj commented Oct 23, 2024

Depends on lsst/daf_butler#1105

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 36.53846% with 33 lines in your changes missing coverage. Please review.

Project coverage is 83.00%. Comparing base (01d4c0b) to head (4d7d88c).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
python/lsst/pipe/base/script/zip_from_graph.py 22.50% 31 Missing ⚠️
python/lsst/pipe/base/cli/cmd/commands.py 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #452      +/-   ##
==========================================
- Coverage   83.21%   83.00%   -0.21%     
==========================================
  Files         101      102       +1     
  Lines       12085    12135      +50     
  Branches     1524     1535      +11     
==========================================
+ Hits        10056    10073      +17     
- Misses       1622     1655      +33     
  Partials      407      407              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@timj timj force-pushed the tickets/DM-46776 branch 2 times, most recently from c2102e1 to 919a181 Compare October 23, 2024 19:39
Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks great.

python/lsst/pipe/base/cli/cmd/commands.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/cli/cmd/commands.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/cli/cmd/commands.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/cli/cmd/commands.py Show resolved Hide resolved
Comment on lines +71 to +77
original_output_refs: set[DatasetRef] = set(qgraph.globalInitOutputRefs())
for task_def in qgraph.iterTaskGraph():
if refs := qgraph.initOutputRefs(task_def):
original_output_refs.update(refs)
for qnode in qgraph:
for otherRefs in qnode.quantum.outputs.values():
original_output_refs.update(otherRefs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be useful to have that code as a method in the graph class?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably.

@timj timj force-pushed the tickets/DM-46776 branch 2 times, most recently from bc4053c to 49a5cd8 Compare October 30, 2024 21:11
@timj timj force-pushed the tickets/DM-46776 branch 3 times, most recently from 1d525e6 to aa86329 Compare October 30, 2024 21:23
Not installing anything that uses conda forge.
@timj timj merged commit d7cbcf4 into main Oct 30, 2024
12 of 14 checks passed
@timj timj deleted the tickets/DM-46776 branch October 30, 2024 21:32
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