We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b71f6f commit 8732039Copy full SHA for 8732039
pydmd/costs.py
@@ -459,6 +459,10 @@ def fit(
459
self._window_length = window_length
460
self._step_size = step_size
461
self._n_time_steps, self._n_data_vars = self._data_shape(data)
462
+
463
+ if not self._n_time_steps == time.size:
464
+ raise ValueError("Data and time dimensions do not align.")
465
466
self._n_slides = self._build_windows(
467
data,
468
self._window_length,
@@ -1560,6 +1564,8 @@ def _xarray_sanitize(value):
1560
1564
value = "None"
1561
1565
elif isinstance(value, set):
1562
1566
value = list(value)
1567
+ elif callable(value):
1568
+ value = f"Custom function {value.__name__}"
1563
1569
return value
1570
1571
@staticmethod
0 commit comments