Skip to content

Commit

Permalink
enables initializing DimcatConfig with just a string as positional ar…
Browse files Browse the repository at this point in the history
…gument, which is intepreted as dtype
  • Loading branch information
johentsch committed Nov 7, 2023
1 parent e0451ad commit cfa64a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dimcat/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cfa64a8

Please sign in to comment.