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-40303: Fix pydantic v2 warnings #363

Merged
merged 24 commits into from Aug 5, 2023
Merged

DM-40303: Fix pydantic v2 warnings #363

merged 24 commits into from Aug 5, 2023

Conversation

timj
Copy link
Member

@timj timj commented Aug 4, 2023

Checklist

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

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch coverage: 76.66% and project coverage change: +0.21% 🎉

Comparison is base (d81147c) 83.97% compared to head (67e65e3) 84.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #363      +/-   ##
==========================================
+ Coverage   83.97%   84.18%   +0.21%     
==========================================
  Files          77       77              
  Lines        9086     9070      -16     
  Branches     1741     1739       -2     
==========================================
+ Hits         7630     7636       +6     
+ Misses       1166     1145      -21     
+ Partials      290      289       -1     
Files Changed Coverage Δ
python/lsst/pipe/base/config.py 70.51% <0.00%> (ø)
python/lsst/pipe/base/connections.py 79.47% <ø> (ø)
python/lsst/pipe/base/pipeline.py 65.41% <0.00%> (ø)
...n/lsst/pipe/base/pipeline_graph/_pipeline_graph.py 93.83% <ø> (ø)
python/lsst/pipe/base/pipeline_graph/io.py 96.53% <ø> (ø)
python/lsst/pipe/base/testUtils.py 96.92% <0.00%> (ø)
python/lsst/pipe/base/tests/no_dimensions.py 0.00% <0.00%> (ø)
python/lsst/pipe/base/tests/pipelineStepTester.py 0.00% <0.00%> (ø)
python/lsst/pipe/base/executionButlerBuilder.py 66.21% <50.00%> (ø)
python/lsst/pipe/base/_quantumContext.py 86.39% <66.66%> (ø)
... and 16 more

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

@@ -97,7 +98,7 @@ def run(self, input: TaskMetadata | dict[str, int]) -> Struct: # type: ignore
Struct with a single ``output`` attribute.
"""
self.log.info("Run method given data of type: %s", get_full_type_name(input))
output = input.copy()
output = copy.copy(input)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is tested by ctrl_mpexec.

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 good, few minor comments.

python/lsst/pipe/base/pipelineIR.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/pipelineIR.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/pipelineIR.py Outdated Show resolved Hide resolved
@timj timj merged commit d1bbb55 into main Aug 5, 2023
13 of 14 checks passed
@timj timj deleted the tickets/DM-40303 branch August 5, 2023 03:10
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