From 7fb07f8ecb633972a187b708f13cda9050bb4554 Mon Sep 17 00:00:00 2001 From: smathot Date: Fri, 15 Mar 2024 15:30:48 +0100 Subject: [PATCH] Allow MultiDimensionalColumns in mapping functions in series module - Bump to 1.0.13 --- datamatrix/__init__.py | 2 +- datamatrix/series.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datamatrix/__init__.py b/datamatrix/__init__.py index 186ea62..2a77233 100644 --- a/datamatrix/__init__.py +++ b/datamatrix/__init__.py @@ -28,6 +28,6 @@ from datamatrix._datamatrix._nifticolumn import NiftiColumn from datamatrix._datamatrix._datamatrix import DataMatrix -__version__ = '1.0.12' +__version__ = '1.0.13' NAN = float('nan') INF = float('inf') diff --git a/datamatrix/series.py b/datamatrix/series.py index 78cbd00..d40c6b5 100644 --- a/datamatrix/series.py +++ b/datamatrix/series.py @@ -1483,7 +1483,7 @@ def _map(series, fnc_, **kwdict): """ f = lambda a: fnc_(a, **kwdict) - if isinstance(series, _SeriesColumn): + if isinstance(series, _MultiDimensionalColumn): return fnc.map_(f, series) if isinstance(series, np.ndarray): return f(series)