Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust inputs on timeseries processing #16

Open
SBFRF opened this issue Sep 15, 2022 · 0 comments
Open

adjust inputs on timeseries processing #16

SBFRF opened this issue Sep 15, 2022 · 0 comments

Comments

@SBFRF
Copy link
Owner

SBFRF commented Sep 15, 2022

Right now wavelib.timeSeriesAnalysis1D requires input time to be in datetime. this could be more flexible to be in seconds or maybe dt

example error

fspec, freq = wl.timeSeriesAnalysis1D(timeStamp, ts_componenets.sum(axis=0))
Traceback (most recent call last):
  File "/home/spike/anaconda3/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3437, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-34-f8e5146b6583>", line 1, in <module>
    fspec, freq = wl.timeSeriesAnalysis1D(timeStamp, ts_componenets.sum(axis=0))
  File "/home/spike/anaconda3/lib/python3.8/site-packages/testbedutils/waveLib.py", line 462, in timeSeriesAnalysis1D
    assert isinstance(time[0], DT.datetime), 'time must be in datetime'
AssertionError: time must be in datetime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant