Skip to content

Commit

Permalink
Fix datetime nanosecond precision warning
Browse files Browse the repository at this point in the history
  • Loading branch information
olemke committed Nov 14, 2024
1 parent 7d6185f commit eb11908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typhon/tests/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_undo_xarray_floatification(self):
{"a": (["x"], np.array([1, 2, 3], dtype="f4")),
"b": (["x"], np.array([2.0, 3.0, 4.0])),
"c": (["x"], np.array(["2010-01-01", "2010-01-02",
"2010-01-03"], dtype="M8"))})
"2010-01-03"], dtype="M8[ns]"))})
ds["a"].encoding = {"dtype": np.dtype("i4"),
"_FillValue": 1234}
# c should NOT be converted because it's a time
Expand Down

0 comments on commit eb11908

Please sign in to comment.