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

numpy.AxisError: axis 1 is out of bounds for array of dimension 1 #60

Open
jaberdugoc opened this issue Oct 26, 2020 · 1 comment
Open

Comments

@jaberdugoc
Copy link

Hi¡
I am running faststructure, the faststructure.py run ok, but when I run choose.py throws this error:

Traceback (most recent call last):
File "../../../../Users/JABC/Downloads/fastStructure/chooseK.py", line 109, in
bestKs = parse_varQs(files)
File "../../../../Users/JABC/Downloads/fastStructure/chooseK.py", line 54, in parse_varQs
Q = Q/utils.insum(Q,[1])
File "utils.pyx", line 11, in utils.lambda
File "<array_function internals>", line 6, in apply_over_axes
File "/Users/JABC/opt/anaconda3/lib/python3.7/site-packages/numpy/lib/shape_base.py", line 495, in apply_over_axes
res = func(*args)
File "<array_function internals>", line 6, in sum
File "/Users/JABC/opt/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2242, in sum
initial=initial, where=where)
File "/Users/JABC/opt/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 87, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
numpy.AxisError: axis 1 is out of bounds for array of dimension 1

Please, any ideas to correct this error,
Thanks

@helizabeth1103
Copy link

Hi @jaberdugoc, the same thing is happening to me. Did you ever figure this out? Thanks!

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