Skip to content

Commit

Permalink
MNT: Use DataFrame methods to guarantee columnwise operations
Browse files Browse the repository at this point in the history
In newer pandas versions numpy calls perform operations as if a simple array was given
  • Loading branch information
nmayorov committed Sep 21, 2023
1 parent 9f49785 commit 095be0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyins/tests/test_error_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ def test_propagate_errors(error_model):
gyro_bias, accel_bias,
error_model=error_model())

error_scale = np.mean(np.abs(error_true))
error_scale = error_true.abs().mean()
rel_diff = (error_linear - error_true) / error_scale
assert_allclose(rel_diff, 0, atol=0.12)

0 comments on commit 095be0c

Please sign in to comment.