AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
November 16, 2021 03:05PM
Hi all,

I am using RetroTS.py in a bash terminal to turn respiratory and cardiac tsv.gz files into regressors for 1st level analysis.
I kept getting this error and any suggestion is greatly appreciated!

RetroTS.py
-phys_file sub-test_ses-test_task-reward_recording-cardiac_physio.tsv.gz
-phys_json sub-test_ses-test_task-reward_recording-cardiac_physio.json
-v 2
-n 72
-prefix physio_card_regressors.1D

#output
Traceback (most recent call last):
File “/Users/xiy/abin/RetroTS.py”, line 687, in
retro_ts(
File “/Users/xiy/abin/RetroTS.py”, line 279, in retro_ts
cardiac_peak, error = peak_finder(cardiac_info,v=phys_dat[k])
File “/Users/xiy/abin/lib_RetroTS/PeakFinder.py”, line 517, in peak_finder
r[“p_trace_r”] = interp1d(
File “/Users/xiy/opt/anaconda3/lib/python3.8/site-packages/scipy/interpolate/interpolate.py”, line 467, in init
self._y = self._reshape_yi(self.y)
File "/Users/xiy/opt/anaconda3/lib/python3.8/site-packages/scipy/interpolate/polyint.py", line 110, in _reshape_yi
** return yi.reshape((yi.shape[0], -1))**
ValueError: cannot reshape array of size 0 into shape (0,newaxis)

I am following the suggestions from this post: [neurostars.org]
Same error with respiratory files. Specifying p instead of json file yielded the same error.
Upon inspection, physio files look normal (two columns: timepoints, amplitude).
Please find the linked de-identified physio and json files for error replication.
[uoregon-my.sharepoint.com]
Thank you all!
Subject Author Posted

RetroTS.py error

afni_user_xiy November 16, 2021 03:05PM

Re: RetroTS.py error

Peter Molfese November 16, 2021 03:29PM

Re: RetroTS.py error

afni_user_xiy November 19, 2021 05:18PM