From cfa64a8ca30d0ca0c245ef17120008b256bcf159 Mon Sep 17 00:00:00 2001 From: Johannes Hentschel Date: Tue, 7 Nov 2023 03:29:50 +0100 Subject: [PATCH] enables initializing DimcatConfig with just a string as positional argument, which is intepreted as dtype --- src/dimcat/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dimcat/base.py b/src/dimcat/base.py index 605c5ef8..6e33ae49 100644 --- a/src/dimcat/base.py +++ b/src/dimcat/base.py @@ -431,6 +431,8 @@ def __init__( ): if isinstance(options, DimcatConfig): options = options.options + elif isinstance(options, str) and dtype is None: + options = dict(dtype=options) options = dict(options, **kwargs) if dtype is None: if "dtype" not in options: