Skip to content

Commit

Permalink
Merge pull request #223 from dstansby/npy125
Browse files Browse the repository at this point in the history
Fix numpy 1.25
  • Loading branch information
dstansby committed Jun 19, 2023
2 parents e2d47db + 40a6c09 commit b44282a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cdflib/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def compute_tt2000(datetimes: npt.ArrayLike) -> Union[int, npt.NDArray[np.int64]

nanoSecSinceJ2000s.append(int(nanoSecSinceJ2000))

return np.array(nanoSecSinceJ2000s)
return np.squeeze(nanoSecSinceJ2000s)

@staticmethod
def _LeapSecondsfromYMD(year: int, month: int, day: int) -> float:
Expand Down
6 changes: 6 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
=========

1.0.5
=====
- Fixed the output of :meth:`cdflib.epochs.CDFepoch.compute_tt2000` to
be squeezed if a single input is given.
- Fixed warnings with numpy 1.25.

1.0.4
=====
- Fixed issue where multi-dimensional variables were dropped when converting to xarray.
Expand Down

0 comments on commit b44282a

Please sign in to comment.