diff --git a/nortech/derivers/values/physical_units.py b/nortech/derivers/values/physical_units.py index 76a2aef..ff42899 100644 --- a/nortech/derivers/values/physical_units.py +++ b/nortech/derivers/values/physical_units.py @@ -644,3 +644,25 @@ ) # This list can be further extended with more quantities and units as needed. +# Boolean values can occur, just as dimensionless values: + +dimensionless = PhysicalQuantity( + name="Dimensionless", + description="A dimensionless quantity is a quantity that has no units.", + SIUnit=str(unit_registry.dimensionless), + SIUnitSymbol=f"{unit_registry.dimensionless:~}", +) + +boolean = PhysicalUnit( + name="Boolean", + description="Boolean is a physical quantity that represents a binary value of true or false.", + symbol=f"{unit_registry.dimensionless:~}", + physicalQuantity=dimensionless, +) + +dimensionless_unit = PhysicalUnit( + name=str(unit_registry.dimensionless), + description="The dimensionless unit is a unit of measurement that has no units.", + symbol=f"{unit_registry.dimensionless:~}", + physicalQuantity=dimensionless, +) diff --git a/nortech/gateways/nortech_api.py b/nortech/gateways/nortech_api.py index 569f5d8..c85d793 100644 --- a/nortech/gateways/nortech_api.py +++ b/nortech/gateways/nortech_api.py @@ -16,7 +16,7 @@ class NortechAPISettings(BaseSettings): URL: str = Field(default="https://api.apps.nor.tech") KEY: str = Field(default=...) - USER_AGENT: str = Field(default="nortech-python/0.9.3") + USER_AGENT: str = Field(default="nortech-python/0.9.4") IGNORE_PAGINATION: bool = True EXPERIMENTAL_FEATURES: bool = False TIMEOUT: float | Timeout = Field(default=Timeout(connect=10, read=60)) diff --git a/pyproject.toml b/pyproject.toml index 30a6844..2858462 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nortech" -version = "0.9.3" +version = "0.9.4" description = "The official Python library for Nortech AI" authors = [ { name = "Nortech AI", email = "info@nortech.ai" }