-
Notifications
You must be signed in to change notification settings - Fork 77
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
Change isel to sel to fix compute_Sv #828
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #828 +/- ##
==========================================
+ Coverage 83.09% 92.81% +9.72%
==========================================
Files 52 5 -47
Lines 4915 543 -4372
==========================================
- Hits 4084 504 -3580
+ Misses 831 39 -792
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@lsetiawan from my understanding, we should replace all
|
@@ -94,7 +94,7 @@ def _get_vend_cal_params_power(self, param, waveform_mode): | |||
) | |||
|
|||
# Select corresponding index and clean up the original nan elements | |||
da_param = da_param.isel(pulse_length_bin=idxmin, drop=True) | |||
da_param = da_param.sel(pulse_length_bin=idxmin, drop=True) |
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.
I looked into this change and everything looks good.
For this one, the value is clearly |
For these two, I'm not sure how to check for these, I'm not familiar enough with the |
Yes, I understand that |
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.
Everything looks good!
This PR adress #824 (comment) where
idxmin
is actually xarray data array object not integers, soisel
doesn't work.