From ee3997d9dabcf7afcc66c7e8aac1d8e16cab1e3e Mon Sep 17 00:00:00 2001 From: Marijn Postma Date: Thu, 23 Jan 2025 13:42:21 +0100 Subject: [PATCH 1/2] [Physical_units] added dimensionless and boolean to the options --- nortech/derivers/values/physical_units.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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, +) From cc9a13c56c338760d95556c598d6ee7de02054bd Mon Sep 17 00:00:00 2001 From: Marijn Postma Date: Mon, 10 Feb 2025 15:31:47 +0100 Subject: [PATCH 2/2] [Nortech] updated the necessary requirements for package --- nortech/gateways/nortech_api.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" }