Skip to content

Commit 8adb998

Browse files
Bucanero06mtezzele
authored andcommitted
Update bopdmd.py
Moved the comment above the changed code line to adhere to Codacy Static Code Analysis for PR
1 parent 52f922a commit 8adb998

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydmd/bopdmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,8 @@ def _initialize_alpha(self):
13681368
# Define the matrices Y and Z as the following and compute the
13691369
# rank-truncated SVD of Y.
13701370
Y = (ux1 + ux2) / 2
1371-
Z = (ux2 - ux1) / (self._time[1:] - self._time[:-1]) # Element-wise division by time differences. w/o large T
1371+
# Element-wise division by time differences. w/o large T
1372+
Z = (ux2 - ux1) / (self._time[1:] - self._time[:-1])
13721373
U, s, V = compute_svd(Y, self._svd_rank)
13731374
S = np.diag(s)
13741375

0 commit comments

Comments
 (0)