Afni error when processing physio as fMRI nuisance regressors

Hi all,

I am using 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! :slightly_smiling_face:

[bash input: target physio file, json file [has p(frequency) = 250], v (TR) = 2, n (slice) = 72, output prefix]
-phys_file sub-664_ses-001_task-reward_recording-cardiac_physio.tsv.gz
-phys_json sub-664_ses-001_task-reward_recording-cardiac_physio.json
-v 2
-n 72
-prefix physio_card_regressors.1D

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

Please let me know if a physio file needs to be uploaded to replicate this error.
Thank you all!