-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
imops/interp2d.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
imops/interp2d.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
fixed microbug in interp2d