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

Remove problematic array copy operations #156

Merged
merged 2 commits into from
Jan 6, 2022
Merged

Remove problematic array copy operations #156

merged 2 commits into from
Jan 6, 2022

Conversation

bwohlberg
Copy link
Collaborator

The copy calls in the current implementations prevent solving problems using BlockArray variables since copy is not implemented for that class. The copy calls should not be necessary since the relevant working variables should be DeviceArray, and therefore immutable, due to the ensure_on_device calls in initializing them.

@bwohlberg bwohlberg added the bug Something isn't working label Jan 3, 2022
@codecov
Copy link

codecov bot commented Jan 3, 2022

Codecov Report

Merging #156 (28eeb7e) into main (ffec40b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #156   +/-   ##
=======================================
  Coverage   92.13%   92.13%           
=======================================
  Files          48       48           
  Lines        3294     3294           
=======================================
  Hits         3035     3035           
  Misses        259      259           
Flag Coverage Δ
unittests 92.13% <100.00%> (ø)

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

Impacted Files Coverage Δ
scico/optimize/_ladmm.py 98.86% <100.00%> (ø)
scico/optimize/_primaldual.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ffec40b...28eeb7e. Read the comment docs.

@bwohlberg bwohlberg added this to the Release 0.0.2 milestone Jan 5, 2022
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.

Does this mean these routines are not tested with BlockArrays? Perhaps such tests should be added (as a new issue).

@bwohlberg
Copy link
Collaborator Author

Does this mean these routines are not tested with BlockArrays? Perhaps such tests should be added (as a new issue).

Good point. I will fix this.

@bwohlberg
Copy link
Collaborator Author

Does this mean these routines are not tested with BlockArrays? Perhaps such tests should be added (as a new issue).

Done.

@bwohlberg bwohlberg merged commit 305b744 into main Jan 6, 2022
@bwohlberg bwohlberg deleted the brendt/no-copy branch January 6, 2022 01:15
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.

None yet

2 participants