home / github / commits

Menu
  • Search all tables
  • GraphQL API

commits: 569a4da18229aed391886ef768132f3d6d64fb30

This data as json

sha message author_date committer_date raw_author raw_committer repo author committer
569a4da18229aed391886ef768132f3d6d64fb30 Handle scale_factor and add_offset as scalar (#4485) * Handle scale_factor and add_offset as scalar The h5netcdf engine exposes single-valued attributes as arrays of shape (1,), which is correct according to the NetCDF standard, but may cause a problem when reading a value of shape () before the scale_factor and add_offset have been applied. This PR adds a check for the dimensionality of add_offset and scale_factor and ensures they are scalar before they are used for further processing, adds a unit test to verify that this works correctly, and a note to the documentation to warn users of this difference between the h5netcdf and netcdf4 engines. Fixes #4471. * DOC: Add whats-new entry for fixing 4471 Add a whats-new entry for the fix to issue #4471, corresponding to PR #4485. * Update doc/io.rst Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> 2020-10-11T20:06:32Z 2020-10-11T20:06:32Z 1bd40da7d5527c59917115dd2a160981b866d3d5 cd792325681cbad9f663f2879d8b69f1edbb678f 13221727 500246 19864447
Powered by Datasette · Queries took 0.781ms · About: xarray-datasette