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

C++ #49

Merged
merged 9 commits into from
Feb 2, 2024
Merged

C++ #49

merged 9 commits into from
Feb 2, 2024

Conversation

alexeybelkov
Copy link
Member

fixed microbug in interp2d

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7a4f4ff) 77.52% compared to head (5212e88) 78.42%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
+ Coverage   77.52%   78.42%   +0.90%     
==========================================
  Files          17       17              
  Lines        1228     1233       +5     
  Branches      265      268       +3     
==========================================
+ Hits          952      967      +15     
+ Misses        258      253       -5     
+ Partials       18       13       -5     

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

@@ -81,7 +81,7 @@ def __call__(self, points: np.ndarray, values: np.ndarray = None, fill_value: fl
points: np.ndarray
2-D array of data point coordinates to interpolate at
values: np.ndarray
1-D array of fp32/fp64 values to use at initial points. If passed, existing values will be rewritten
1-D array of fp32/fp64 values to use at initial points. If passed, existing values will NOT be rewritten
Copy link
Member

Choose a reason for hiding this comment

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

"If passed, existing values will NOT be rewritten" - you don't need to specify this. This is what the user expects anyway

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@@ -90,16 +90,16 @@ def __call__(self, points: np.ndarray, values: np.ndarray = None, fill_value: fl
new_values: np.ndarray
interpolated values at given points
"""
self.values = values or self.values
x_values = values if values is not None else self.values
Copy link
Member

Choose a reason for hiding this comment

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

why not just

if values is None:
  values = self.values

? the new variable seems redundant

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@alexeybelkov alexeybelkov requested a review from maxme1 February 1, 2024 21:52
@vovaf709 vovaf709 merged commit bab650d into master Feb 2, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants