Closed rocco8773 closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.50%. Comparing base (
f74f720
) to head (bd4f118
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR address the following
FutureWarning
...In the past
np.dtype([("shotnum", np.int32, 1), ])
mapped tonp.dtype([("shotnum", "<i4"), ])
, which lead to an shot number array shape ofdata["shotnum"].shape == (100,)
for a data run of 100 shots. After the change bynumpy
this will map tonp.dtype([("shotnum", "<i4", (1,)), ])
and result indata["shotnum"].shape == (100, 1)
. To avoid this, the shape argument when constructing anp.dtype
will always be a tuple, with the previous1
argument being an empty tuple()
.numpy == 2.0
.