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 #483 #484

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Resolve #483 #484

merged 3 commits into from
Dec 14, 2023

Conversation

bwohlberg
Copy link
Collaborator

Resolve #483.

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

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e874051) 94.76% compared to head (95a3328) 94.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #484      +/-   ##
==========================================
- Coverage   94.76%   94.45%   -0.30%     
==========================================
  Files          91       91              
  Lines        5626     5662      +36     
==========================================
+ Hits         5331     5348      +17     
- Misses        295      314      +19     
Flag Coverage Δ
unittests 94.45% <100.00%> (-0.30%) ⬇️

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.

def mapped(*args, **kwargs):
num_blocks = _num_blocks_in_args(*args, **kwargs)
if num_blocks == 0:
func(*args, **kwargs) # no BlockArray arguments, so no mapping
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest return immediately after calling func inside this if

@bwohlberg bwohlberg merged commit 9b32636 into main Dec 14, 2023
18 of 19 checks passed
@bwohlberg bwohlberg deleted the brendt/issue483 branch December 14, 2023 16:30
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.

Incorrect handling of functions with no return value in scico.numpy
2 participants