EthanJamesLew / AutoKoopman

AutoKoopman - automated Koopman operator methods for data-driven dynamical systems analysis and control.
GNU General Public License v3.0
53 stars 10 forks source link

Assertion error for 1d inputs #74

Closed Abdu-Hekal closed 1 year ago

Abdu-Hekal commented 1 year ago

@EthanJamesLew For systems with 1 input, the following error is thrown: AssertionError: inputs must be able to be converted to 2D numpy array. How do we learn systems with only 1 input?

EthanJamesLew commented 1 year ago

@Abdu-Hekal the library should probably check for 1D inputs, but the logic should still be okay. You will need a nx1 2D array, and maybe use np.atleast_2d on the inputs to stop the error.