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

Check for blockarray inputs in from_operator #229

Merged
merged 2 commits into from
Feb 23, 2022
Merged

Conversation

Michael-T-McCann
Copy link
Contributor

@Michael-T-McCann Michael-T-McCann commented Feb 23, 2022

Check for blockarray inputs in from_operator.

@bwohlberg bwohlberg added the improvement Improvement of existing code, including addressing of omissions or inconsistencies label Feb 23, 2022
if is_nested(H.input_shape):
raise ValueError(
f"`H.input_shape` ({H.input_shape}) suggests that it "
"works on `BlockArray`s, but this function assumes "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps rephrase to something like: "... suggests that H takes BlockArray input, which is not supported by this function"? Also, note removal of markup, which is not really of any use in an error message.

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.

Approved modulo comment on error message.

@codecov
Copy link

codecov bot commented Feb 23, 2022

Codecov Report

Merging #229 (7325b4a) into main (54f9b39) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 7325b4a differs from pull request most recent head 69f044a. Consider uploading reports for the commit 69f044a to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #229   +/-   ##
=======================================
  Coverage   92.49%   92.50%           
=======================================
  Files          49       49           
  Lines        3451     3455    +4     
=======================================
+ Hits         3192     3196    +4     
  Misses        259      259           
Flag Coverage Δ
unittests 92.50% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
scico/linop/_circconv.py 83.83% <100.00%> (+0.68%) ⬆️

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 54f9b39...69f044a. Read the comment docs.

@Michael-T-McCann Michael-T-McCann enabled auto-merge (squash) February 23, 2022 19:44
@Michael-T-McCann Michael-T-McCann merged commit f7395cf into main Feb 23, 2022
@bwohlberg bwohlberg deleted the mike/from_op branch February 23, 2022 23:03
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.

None yet

2 participants