Closed anujsinha3 closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.03%. Comparing base (
6dc196a
) to head (d3328fb
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@leewujung could you do a review on this, it looks good to me, just wanted to make sure that it's all good to you as well. Thanks! The test data is now bigger.
Hi @leewujung, Initially, I had used the np.random.rand() as you suggested, but that caused the test assertions to fail as the test outputs also got randomized (especially for interpolation test cases). Hence I switched to np.ones().
Happy to adapt further suggestions.
@anujsinha3 : Locally the tests I suggested worked. Could you point to where the interpolation and failure was? It was hard for me to tell which parts actually got changed due to the reformatting. Even if the values are random, wouldn't it be possible to put the expected interpolated results based on DATA
into the assertion?
Ah, I see the error now. I was multiplying the np.random.rand()
with a constant, which caused the test case failures. I have fixed that now. Apologies for the confusion.
@anujsinha3 : No problem! Feel free to merge this then!
Alright, I'll merge this now.
Refactor function to avoid expand_dims and sortby if required
test: increase co-ordinates to 200 for ping_time dimension