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

TypeError: 'float' object cannot be interpreted as an index #1

Closed
mrek235 opened this issue Aug 8, 2018 · 1 comment
Closed

TypeError: 'float' object cannot be interpreted as an index #1

mrek235 opened this issue Aug 8, 2018 · 1 comment

Comments

@mrek235
Copy link

mrek235 commented Aug 8, 2018

We had this problem while $ make multipleTestCorrect OUTPUT_DIR=output/1e96_output MUPIT_ANNOTATION_DIR=1e96_example/mupit_annotations using this command from quick start, and we tried to fix it by changing 41st line of statistics.py in src folder to:
pval_adj = np.zeros(int(n))
Is this the correct way to do it?

@ctokheim
Copy link
Collaborator

ctokheim commented Aug 8, 2018

Thank you for reporting this issue. Your edit is indeed correct, as newer versions of numpy are less tolerant of the input for the zeros function. My latest commit on github reflects this addition to the code to avoid this issue with future users.

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