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

Make adjoint and gram get auto set separately #414

Merged
merged 3 commits into from
May 9, 2023
Merged

Conversation

Michael-T-McCann
Copy link
Contributor

@Michael-T-McCann Michael-T-McCann commented May 8, 2023

Previously, when a LinOp needed either a gram operator or an adjoint, both would be automatically generated. In particular, this meant that user-defined adjoint would be overwritten if the user did not also set the gram. This PR splits the two.

Addresses #331

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #414 (d15f479) into main (ffac558) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #414      +/-   ##
==========================================
+ Coverage   94.77%   94.87%   +0.09%     
==========================================
  Files          83       83              
  Lines        5262     5265       +3     
==========================================
+ Hits         4987     4995       +8     
+ Misses        275      270       -5     
Flag Coverage Δ
unittests 94.87% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
scico/linop/_linop.py 92.85% <100.00%> (+0.98%) ⬆️
scico/linop/radon_astra.py 86.48% <100.00%> (ø)

... and 2 files with indirect coverage changes

@bwohlberg bwohlberg changed the title Make adjoint and gram get auto set separtely Make adjoint and gram get auto set separately May 8, 2023
Copy link
Collaborator

@bwohlberg bwohlberg 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. I took the liberty of bumping a test threshold to address the CI failure on OSX. Probably best to hold the merge for confirmation that it worked.

@Michael-T-McCann Michael-T-McCann merged commit e129468 into main May 9, 2023
@Michael-T-McCann Michael-T-McCann deleted the mike/331 branch May 9, 2023 15:35
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.

Error when applying the adjoint of a DiagonalStack of TomographicProjector
2 participants