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

Rename linear problem solver and add parameter type checking #457

Merged
merged 13 commits into from
Oct 26, 2023

Conversation

bwohlberg
Copy link
Collaborator

Rename linear problem solver and add parameter type checking.

@bwohlberg bwohlberg added the improvement Improvement of existing code, including addressing of omissions or inconsistencies label Oct 6, 2023
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #457 (f1ab974) into main (ea2aaf0) will decrease coverage by 0.08%.
The diff coverage is 77.27%.

@@            Coverage Diff             @@
##             main     #457      +/-   ##
==========================================
- Coverage   93.34%   93.26%   -0.08%     
==========================================
  Files          87       87              
  Lines        5514     5522       +8     
==========================================
+ Hits         5147     5150       +3     
- Misses        367      372       +5     
Flag Coverage Δ
unittests 93.26% <77.27%> (-0.08%) ⬇️

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

Files Coverage Δ
scico/linop/_matrix.py 95.97% <100.00%> (-0.03%) ⬇️
scico/numpy/util.py 97.75% <100.00%> (+0.05%) ⬆️
scico/optimize/_admmaux.py 96.81% <100.00%> (ø)
scico/solver.py 95.38% <61.54%> (-2.02%) ⬇️

scico/solver.py Show resolved Hide resolved
scico/solver.py Show resolved Hide resolved
scico/solver.py Show resolved Hide resolved
scico/solver.py Outdated Show resolved Hide resolved
scico/solver.py Outdated Show resolved Hide resolved
scico/solver.py Outdated Show resolved Hide resolved
scico/solver.py Outdated
raise ValueError("If matrix, D should be 1D or 2D.")
raise ValueError("If MatrixOperator, D should be 1D or 2D.")
Copy link
Contributor

Choose a reason for hiding this comment

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

This error can be raised by either an array or a MatrixOperator, maybe should be "If array or MatrixOperator..."

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@bwohlberg bwohlberg merged commit 3973e1b into main Oct 26, 2023
16 of 17 checks passed
@bwohlberg bwohlberg deleted the brendt/solver branch October 26, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement of existing code, including addressing of omissions or inconsistencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants