Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2025
1 parent c5e2234 commit 6ffca3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/internals/time-coding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,9 @@ into their native on-disk resolution, if possible:
coder = xr.coders.CFDatetimeCoder(time_unit="s")
xr.open_dataset("test-timedeltas2.nc", decode_times=coder)
To opt-out of timedelta decoding (see issue `Undesired decoding to timedelta64 <https://github.com/pydata/xarray/issues/1621>`_) pass ``False`` to ``decode_timedelta``:

.. ipython:: python
xr.open_dataset("test-timedeltas2.nc", decode_times=False)
xr.open_dataset("test-timedeltas2.nc", decode_times=False)

0 comments on commit 6ffca3a

Please sign in to comment.