enthought / enthought/scimath

Offset is ignored when dividing by UnitScalar

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Python
Stars
66
Forks
13
PR merge metrics
No merged PRs in 30d

Description

This seems like an odd behavior. Does it make sense to autoconvert to the base units?
```
>>> u = UnitScalar(10.0, units='degC')
>>> u
UnitScalar(10.0, units='1.0*K+273.15')
>>> 1/u
UnitScalar(0.1, units='1.0*K**-1')
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.