• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

st-bender / xarray-simpleunits / 6870462852

14 Nov 2023 10:47PM UTC coverage: 95.0% (-1.4%) from 96.364%
6870462852

push

github

st-bender
Don't set "units" attribute for datetime types

Since the datetime units are handled by numpy and pandas internally,
we don't set the "units" attribute of the xarray variable.
Note that in case this is set, this might also conflict with the time
encoding setting when serializing to netcdf, resulting in an error.

4 of 4 new or added lines in 1 file covered. (100.0%)

6 existing lines in 1 file now uncovered.

114 of 120 relevant lines covered (95.0%)

7.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.87
/src/xarray_simpleunits/units.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc