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

st-bender / xarray-simpleunits / 12071965771
97%

Build:
DEFAULT BRANCH: main
Ran 28 Nov 2024 03:43PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Canceled at 06 Aug 2025 04:36AM UTC via web
12071965771

push

github

st-bender
Fix multiplication and division DataArrays

When multiplying by an `astropy.unit.Unit` or `Quantity`, the underlying
`numpy.ndarray` gets be promoted to a `Quantity` array. This messes up
any further arithmetic operations since `astropy.unit` works with those
quantities instead of the DataArray.

Fixes this by re-building the `Variable` from scratch, only using the
`.values` to discard any `Unit` or `Quantity`. The resulting DataArrays
should contain plain numpy arrays with the units in the `units`
attribute.
Source Files on build 12071965771
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12071965771
  • acd34f25 on github
  • Prev Build on main (#9112158746)
  • Next Build on main (#12072261180)
  • Delete
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