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

Error in ciftify_peaktable and ciftify_statclust_report #170

Open
kmanoli opened this issue Jul 20, 2022 · 1 comment · May be fixed by #173
Open

Error in ciftify_peaktable and ciftify_statclust_report #170

kmanoli opened this issue Jul 20, 2022 · 1 comment · May be fixed by #173
Assignees

Comments

@kmanoli
Copy link

kmanoli commented Jul 20, 2022

Hello,

I'm trying to get more information about a seed-to-voxel correlation dscalar file, generated with ciftify_seed_corr. I tried ciftify_peaktable and ciftify_statclust_report but got the same error: AttributeError: 'Index' object has no attribute 'get_values'. I used these functions with and without extra options, but the errors persist. I should mention that ciftify_statclust_report does generate a _clust.dlabel.nii, but no csv file. Any help will be greatly appreciated!

Traceback (most recent call last):
  File "/Users/katerina/opt/anaconda3/bin/ciftify_peaktable", line 8, in <module>
    sys.exit(main())
  File "/Users/katerina/opt/anaconda3/lib/python3.9/site-packages/ciftify/bin/ciftify_statclust_report.py", line 426, in main
    ret = run_ciftify_dlabel_report(arguments, tmpdir)
  File "/Users/katerina/opt/anaconda3/lib/python3.9/site-packages/ciftify/bin/ciftify_statclust_report.py", line 182, in run_ciftify_dlabel_report
    for pd_idx in df.index.get_values():
AttributeError: 'Index' object has no attribute 'get_values'

Pandas version: 1.3.4
Python version: 3.9.7

Best,
Katerina

@joebathelt
Copy link

Hi Katerina,
I had the same issue. I think the reason is that the df.index.get_values() syntax is no longer supported in pandas (see pandas documentation). As a workaround, I created a conda environment with an older version of pandas:

conda create -n 'ciftify'  
conda activate ciftify  
conda install python=3.7  
conda install pandas=0.24 
pip install -U ciftify

DESm1th added a commit to DESm1th/ciftify that referenced this issue Nov 3, 2022
This function call was deprecated with newer versions of pandas
and has been updated to address issue edickie#170
@DESm1th DESm1th linked a pull request Nov 3, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants