Skip to content

Commit f29f332

Browse files
committed
Casting snapshots as complex, use Snapshot.snapshots for VarProOperator
1 parent 7b16f11 commit f29f332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydmd/varprodmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ def fit(self, X: np.ndarray, time: np.ndarray) -> object:
820820

821821
self._snapshots_holder = Snapshots(X)
822822
(self._b, self._optres, self._indices) = self._Atilde.compute_operator(
823-
X, time
823+
self._snapshots_holder.snapshots.astype(np.complex128), time
824824
)
825825
self._original_time = time
826826
self._dmd_time = time[self._indices]

0 commit comments

Comments
 (0)