From cd9c554864b17374cef8009ca171c1f7eb0c87f9 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Mon, 20 May 2024 01:21:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Release=200.72.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lamindb/__init__.py | 2 +- lamindb/_feature.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lamindb/__init__.py b/lamindb/__init__.py index 0481cbd99..411c624ee 100644 --- a/lamindb/__init__.py +++ b/lamindb/__init__.py @@ -41,7 +41,7 @@ """ # denote a release candidate for 0.1.0 with 0.1rc1, 0.1a1, 0.1b1, etc. -__version__ = "0.72a1" +__version__ = "0.72.0" import os as _os diff --git a/lamindb/_feature.py b/lamindb/_feature.py index 24402d67f..b5fdf3a97 100644 --- a/lamindb/_feature.py +++ b/lamindb/_feature.py @@ -18,6 +18,7 @@ from lnschema_core.types import FieldAttr FEATURE_TYPES = { + "number": "number", "int": "int", "float": "float", "bool": "bool", @@ -68,7 +69,7 @@ def __init__(self, *args, **kwargs): "cat" ): raise ValueError( - "dtype has to be one of 'number', 'cat', 'bool', 'cat[...]'!" + f"dtype is {dtype_str} but has to be one of 'number', 'int', 'float', 'cat', 'bool', 'cat[...]'!" ) if dtype_str != "cat" and dtype_str.startswith("cat"): registries_str = dtype_str.replace("cat[", "").rstrip("]")