Skip to content

Commit eff3e67

Browse files
authored
Fix failing test on tutorial12 (PyDMD#498)
* install wget on ubuntu in actions * apply black
1 parent cbd7c92 commit eff3e67

File tree

22 files changed

+25
-4
lines changed

22 files changed

+25
-4
lines changed

.github/workflows/testing_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- uses: actions/checkout@v3
4747
- name: Install black
4848
run: |
49-
pip install black[jupyter]
49+
pip install black[jupyter]==24.2.0
5050
5151
- name: Run black formatter on PyDMD source code
5252
run: |
@@ -122,7 +122,7 @@ jobs:
122122
python-version: ${{ matrix.python-version }}
123123
cache: 'pip'
124124
cache-dependency-path: setup.py
125-
125+
126126
- name: Install dependencies
127127
run: |
128128
pip install --upgrade pip

pydmd/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
PyDMD init
33
"""
4+
45
__all__ = [
56
"dmdbase",
67
"dmd",

pydmd/cdmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
As a reference consult this work by Erichson, Brunton and Kutz:
44
https://doi.org/10.1007/s11554-016-0655-2
55
"""
6+
67
import numpy as np
78
import scipy.sparse
89
from scipy.linalg import sqrtm

pydmd/dmd_modes_tuner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
A module which contains several functions to tune (i.e. improve) DMD instances
33
through the "manual" modification of DMD modes.
44
"""
5+
56
from copy import deepcopy
67
from functools import partial
78

pydmd/dmdbase.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Base module for the DMD: `fit` method must be implemented in inherited classes
33
"""
4+
45
import pickle
56
from copy import copy, deepcopy
67

pydmd/dmdc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Proctor, J.L., Brunton, S.L. and Kutz, J.N., 2016. Dynamic mode decomposition
66
with control. SIAM Journal on Applied Dynamical Systems, 15(1), pp.142-161.
77
"""
8+
89
import numpy as np
910

1011
from .dmdbase import DMDBase

pydmd/edmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
A data-driven approximation of the koopman operator: extending
1010
dynamic mode decomposition, J. Nonlinear Sci., 25 (2015), pp. 1307-1346
1111
"""
12+
1213
import numpy as np
1314
from sklearn.metrics.pairwise import pairwise_kernels
1415

pydmd/fbdmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Derived module from dmdbase.py for forward/backward dmd."""
2+
23
from .dmd import DMD
34

45

pydmd/hankeldmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
computation of spectral properties of the Koopman operator. SIAM Journal on
77
Applied Dynamical Systems, 2017, 16.4: 2096-2126.
88
"""
9+
910
from copy import copy
1011
from numbers import Number
1112

pydmd/hodmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- S. L Clainche, J. M. Vega, Higher Order Dynamic Mode Decomposition.
66
Journal on Applied Dynamical Systems, 16(2), 882-925, 2017.
77
"""
8+
89
import warnings
910

1011
import numpy as np

0 commit comments

Comments
 (0)