Skip to content

Commit

Permalink
Allowing velocity as mm/a (#367)
Browse files Browse the repository at this point in the history
* add velocity as mm/a

* update test
  • Loading branch information
alexandrebbruno authored Mar 13, 2024
1 parent 40898a0 commit 834ffe5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
:"m/h": metres/hour
:"m/min": meter per minute
:"m/s": metres/second
:"mm/a": millimetres/year
:"mm/s": millimetres/second
1 change: 1 addition & 0 deletions src/alfasim_sdk/_internal/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def add_category_if_not_defined(*, category, quantity_type, valid_units):
velocity_units.remove("mm/min")
velocity_units.remove("in/d")
velocity_units.remove("in/h")
velocity_units.append("mm/a")
db.AddCategory(
"velocity", quantity_type="velocity", valid_units=velocity_units, override=True
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
:"m/h": metres/hour
:"m/min": meter per minute
:"m/s": metres/second
:"mm/a": millimetres/year
:"mm/s": millimetres/second

0 comments on commit 834ffe5

Please sign in to comment.