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

Resolve #479 #480

Merged
merged 2 commits into from
Dec 12, 2023
Merged

Resolve #479 #480

merged 2 commits into from
Dec 12, 2023

Conversation

bwohlberg
Copy link
Collaborator

Resolve #479.

The solution is to simply remove the VerticalStack-specific arithmetic operator definitions, the need for which is unclear.

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5c83511) 94.83% compared to head (7afe23b) 94.76%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
- Coverage   94.83%   94.76%   -0.08%     
==========================================
  Files          91       91              
  Lines        5651     5626      -25     
==========================================
- Hits         5359     5331      -28     
- Misses        292      295       +3     
Flag Coverage Δ
unittests 94.76% <100.00%> (-0.08%) ⬇️

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

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

@bwohlberg bwohlberg added the bug Something isn't working label Dec 9, 2023
Copy link
Contributor

@Michael-T-McCann Michael-T-McCann left a comment

Choose a reason for hiding this comment

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

With this PR, we lose the ability to add two VerticalStacks together and get another VerticalStack rather than a generic Operator or LinearOperator. I am willing to give that up to reduce code duplication. There may be other places in the code with a similar pattern.

@bwohlberg
Copy link
Collaborator Author

With this PR, we lose the ability to add two VerticalStacks together and get another VerticalStack rather than a generic Operator or LinearOperator. I am willing to give that up to reduce code duplication. There may be other places in the code with a similar pattern.

This was intentional. It isn't clear what real benefit there is to this capability, and it requires considerable additional complexity. It seems simplest to remove it for now, and re-enable it if we discover some significant use for it.

@bwohlberg bwohlberg merged commit 55e4359 into main Dec 12, 2023
18 of 19 checks passed
@bwohlberg bwohlberg deleted the brendt/issue479 branch December 12, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scaling of FiniteDifference linear operator broken
2 participants