Skip to content

Commit

Permalink
fix: micro_g and inverse meter unit conversion
Browse files Browse the repository at this point in the history
* fix weigths scale for microgrammes

* fix "per_m" unit

* chore: update changelog
  • Loading branch information
ycattan authored Dec 7, 2023
1 parent c65030a commit c918130
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixed

- Microgram scale is now correctly 1/1000g and inverse meter now 1/100 inverse cm.

## v0.10.0

### Added
Expand Down
4 changes: 2 additions & 2 deletions edsnlp/pipes/misc/measurements/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"µg": {
"dim": "mass",
"degree": 1,
"scale": 1e-1,
"scale": 1e-3,
"terms": [
"microgramme",
"microgrammes",
Expand Down Expand Up @@ -386,7 +386,7 @@
"per_m": {
"dim": "length",
"degree": -1,
"scale": 1e-3,
"scale": 1e-2,
"terms": ["m-1"],
"followed_by": None,
},
Expand Down

0 comments on commit c918130

Please sign in to comment.