Skip to content

Commit

Permalink
adjust doctest to new coords
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Jun 24, 2023
1 parent 9d1ba15 commit da343f0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions xbitinfo/xbitinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ def get_bitinformation( # noqa: C901
>>> ds = xr.tutorial.load_dataset("air_temperature")
>>> xb.get_bitinformation(ds, dim="lon") # doctest: +ELLIPSIS
<xarray.Dataset>
Dimensions: (bit32: 32)
Dimensions: (bitfloat32: 32)
Coordinates:
* bit32 (bit32) <U3 '±' 'e1' 'e2' 'e3' 'e4' ... 'm20' 'm21' 'm22' 'm23'
dim <U3 'lon'
* bitfloat32 (bitfloat32) <U3 '±' 'e1' 'e2' 'e3' ... 'm20' 'm21' 'm22' 'm23'
dim <U3 'lon'
Data variables:
air (bit32) float64 0.0 0.0 0.0 0.0 ... 0.0 3.953e-05 0.0006889
air (bitfloat32) float64 0.0 0.0 0.0 0.0 ... 0.0 3.953e-05 0.0006889
Attributes:
xbitinfo_description: bitinformation calculated by xbitinfo.get_bit...
python_repository: https://github.com/observingClouds/xbitinfo
Expand All @@ -168,12 +168,12 @@ def get_bitinformation( # noqa: C901
BitInformation.jl_version: ...
>>> xb.get_bitinformation(ds)
<xarray.Dataset>
Dimensions: (bit32: 32, dim: 3)
Dimensions: (bitfloat32: 32, dim: 3)
Coordinates:
* bit32 (bit32) <U3 '±' 'e1' 'e2' 'e3' 'e4' ... 'm20' 'm21' 'm22' 'm23'
* dim (dim) <U4 'lat' 'lon' 'time'
* bitfloat32 (bitfloat32) <U3 '±' 'e1' 'e2' 'e3' ... 'm20' 'm21' 'm22' 'm23'
* dim (dim) <U4 'lat' 'lon' 'time'
Data variables:
air (dim, bit32) float64 0.0 0.0 0.0 0.0 ... 0.0 6.327e-06 0.0004285
air (dim, bitfloat32) float64 0.0 0.0 0.0 ... 6.327e-06 0.0004285
Attributes:
xbitinfo_description: bitinformation calculated by xbitinfo.get_bit...
python_repository: https://github.com/observingClouds/xbitinfo
Expand Down

0 comments on commit da343f0

Please sign in to comment.