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

AttributeError: 'DataFrame' object has no attribute 'times' And scary Test #339

Open
AlvicePC opened this issue Apr 21, 2024 · 6 comments
Open

Comments

@AlvicePC
Copy link

Hello, i been trying to run msnoise again. But i update all my conda, i decide to install the master version because reading the github i find that there is a lot o bugs now, and i come here with another one.

i run "msnoise cc compute_cc" and it works, but in the next step of the work flow i run "msnoise cc stack -r" and got it...

Lets STACK !
2024-04-21 15:23:29.359505 msnoise [pid 2199][INFO]: There are STACKS jobs for some days to recompute for JA.TOMA.--:JA.TOMA.--
2024-04-21 15:23:29.364789 msnoise [pid 2199][INFO]: Processing JA.TOMA.--:JA.TOMA.---ZZ-1
Traceback (most recent call last):
File "/home/alvaro/anaconda3/bin/msnoise", line 8, in
sys.exit(run())
^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/msnoise/scripts/msnoise.py", line 1529, in run
cli(obj={})
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/msnoise/scripts/msnoise.py", line 877, in cc_stack
main('ref', loglevel=loglevel)
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/msnoise/s04_stack2.py", line 167, in main
_ = dr.where(dr.times >= start, drop=True)
^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/pandas/core/generic.py", line 6204, in getattr
return object.getattribute(self, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DataFrame' object has no attribute 'times'

Plus i run "msnoise utils test" and it scared me... please help me.
bugreport.txt

@ThomasLecocq
Copy link
Member

Could you try to:

  • delete the STACKS2 folder
  • msnoise reset STACK --all
  • msnoise cc stack -m
  • msnoise reset STACK
  • msnoise cc stack -r

and see if there are still errors?

regarding the failed test: it's strange that the test uses a "prefix" for the database, never saw this, will investigate.

@AlvicePC
Copy link
Author

Hi, i delete the foldet STACKS, run "msnoise reset STACK --all" ok, run "msnoise cc stack -m" and got it...
Lets STACK !
2024-04-22 16:56:30.475124 msnoise [pid 2286][INFO]: There are STACKS jobs for some days to recompute for JA.CIHU.--:JA.YELA.--
2024-04-22 16:56:30.481280 msnoise [pid 2286][INFO]: Processing JA.CIHU.--:JA.YELA.---ZZ-1
Traceback (most recent call last):
File "/home/alvaro/anaconda3/bin/msnoise", line 8, in
sys.exit(run())
^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/msnoise/scripts/msnoise.py", line 1529, in run
cli(obj={})
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/msnoise/scripts/msnoise.py", line 879, in cc_stack
main('mov', loglevel=loglevel)
File "/home/alvaro/anaconda3/lib/python3.11/site-packages/msnoise/s04_stack2.py", line 173, in main
dr = dr.resample(times="%is" % params.corr_duration).mean()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: NDFrame.resample() got an unexpected keyword argument 'times'

@ThomasLecocq
Copy link
Member

Do you have the CROSS_CORRELATIONS folder with some ccfs in there?

@AlvicePC
Copy link
Author

no because i have "keep all = N"

@ThomasLecocq
Copy link
Member

For the dev version it is compulsory to have keep_all=Y , which is default now

@AlvicePC
Copy link
Author

ok, i did it, compute cc is ok, it created de CROSS_CORRELATIONS folder then i run "msnoise cc stack -m" and got it.

2024-04-23 02:40:38.554162 msnoise [pid 47575][INFO]: There are STACKS jobs for some days to recompute for JA.ESSJ.--:JA.YELJA.--
2024-04-23 02:40:38.558498 msnoise [pid 47575][INFO]: Processing JA.ESSJ.--:JA.YELJA.---ZZ-1
Killed

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

2 participants