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

Python Version issue #11

Open
bth22 opened this issue Jun 27, 2017 · 4 comments
Open

Python Version issue #11

bth22 opened this issue Jun 27, 2017 · 4 comments
Assignees

Comments

@bth22
Copy link

bth22 commented Jun 27, 2017

Hi, do you know which version of Python you used? I'm using 2.7.13 and getting the following error.

COHORT: DISCOVERY
--------------------------------------------------
Making or loading correlation matrices
    CT_ALL_COVARS_ONES
    CT_ADULT_COVARS_ONES
--------------------------------------------------
Filling measure dict with regional values and correlations with age
Traceback (most recent call last):
  File "NSPN_CorticalMyelination_AnalysisWrapper.py", line 217, in <module>
    n_perm=1000)
  File "/Users/taylorhilton/Downloads/NSPN_WhitakerVertes_PNAS2016-master/SCRIPTS/fill_measure_dict.py", line 49, in fill_measure_dict_part1
    fsaverage_dict['centroids'])
  File "/Users/taylorhilton/Downloads/NSPN_WhitakerVertes_PNAS2016-master/SCRIPTS/fill_measure_dict.py", line 264, in save_name_lists
    list_34 += [ measure_dict['308'][measure][i[0]] ]
TypeError: only integer scalar arrays can be converted to a scalar index
@bth22
Copy link
Author

bth22 commented Jun 27, 2017

To clarify this is for NSPN_CorticalMyelination_AnalysisWrapper.py.

@KirstieJane
Copy link
Owner

Aaaah! That's so sad @bth22 😢

I was using 2.7.x but I didn't write down the exact version. Bad Kirstie. 🙍

I'll try to have a play next week and see if I can replicate the error. Fingers crossed its an easy fix. Thank you for letting me know :)

@bth22
Copy link
Author

bth22 commented Jul 11, 2017

Did you have a chance to look at it? I appreciate the help. :)

@jlhanson5
Copy link

bth22 (Taylor) was in my research group and we were interested in trying this (or similar) code out. Is it better to try this code... or the WhitakerLab/BrainNetworksInPython github? Thanks much in advance!

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

3 participants