From 9b6b495c32fce1c254757b5933fe4c5b90e70543 Mon Sep 17 00:00:00 2001 From: Nathaniel Starkman Date: Wed, 22 Jan 2025 12:58:40 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20ui(quantity):=20make=20AbstractQ?= =?UTF-8?q?uantity=20available=20from=20the=20unxt=20namespace=20(#371)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nathaniel Starkman --- src/unxt/__init__.py | 9 ++++++++- uv.lock | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/unxt/__init__.py b/src/unxt/__init__.py index 2c0b06b4..b4dc2a29 100644 --- a/src/unxt/__init__.py +++ b/src/unxt/__init__.py @@ -38,6 +38,7 @@ # quantities "quantity", # module "Quantity", # main class + "AbstractQuantity", # base class "uconvert", # convert units "ustrip", # strip units "is_unit_convertible", # check if units can be converted @@ -51,7 +52,13 @@ from . import dims, quantity, units, unitsystems from ._version import version as __version__ from .dims import dimension, dimension_of - from .quantity import Quantity, is_unit_convertible, uconvert, ustrip + from .quantity import ( + AbstractQuantity, + Quantity, + is_unit_convertible, + uconvert, + ustrip, + ) from .units import unit, unit_of from .unitsystems import AbstractUnitSystem, unitsystem, unitsystem_of diff --git a/uv.lock b/uv.lock index 20aa0b69..02627a3b 100644 --- a/uv.lock +++ b/uv.lock @@ -2627,7 +2627,7 @@ wheels = [ [[package]] name = "unxt" -version = "1.0.1.dev29+g49de864.d20250122" +version = "1.0.1.dev30+gc7ae4f5.d20250122" source = { editable = "." } dependencies = [ { name = "astropy" },