mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Fix #1795. New support for conversion based units with offsets, like fahrenheit.
This commit is contained in:
@@ -192,9 +192,14 @@ si_conversions = {
|
||||
"hour": 3600,
|
||||
"day": 86400,
|
||||
"btu": 1055.056,
|
||||
"fahrenheit": 1.8,
|
||||
}
|
||||
|
||||
|
||||
si_offsets = {
|
||||
"fahrenheit": -459.67,
|
||||
}
|
||||
|
||||
|
||||
imperial_types = {
|
||||
"thou": "LENGTHUNIT",
|
||||
@@ -233,6 +238,7 @@ imperial_types = {
|
||||
"hour": "TIMEUNIT",
|
||||
"day": "TIMEUNIT",
|
||||
"btu": "ENERGYUNIT",
|
||||
"fahrenheit": "THERMODYNAMICTEMPERATUREUNIT",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user