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

IndexError: boolean index did not match indexed array along dimension 0 #1

Open
heejongkim opened this issue Jul 26, 2020 · 1 comment

Comments

@heejongkim
Copy link

Hi,

Thanks for releasing a very promising method to the public.
After testing with the provided example data successfully, I attempted to run it on my data but I got the follow error msg and job got killed.

Traceback (most recent call last):
File "/home/xxxx/externprior/externprior/exrecon_cwred.py", line 155, in
result_ft[imix] = (data_ft[imix] + denoised_ft[imix] / tau2[imix]) / (weights[imix] + 1. / tau2[imix])
IndexError: boolean index did not match indexed array along dimension 0; dimension is 96 but corresponding boolean dimension is 1000
in: /home/xxxx/relion/src/backprojector.cpp, line 1283
ERROR:
ERROR: there was something wrong with system call: python /home/xxxx/externprior/externprior/exrecon_cwred.py /home/xxxx/externprior/dncnn_model Refine3D/job861/run_it001_half2_class001_external_reconstruct.star
=== Backtrace ===
/opt/relion-3.1/bin/relion_refine_mpi(_ZN11RelionErrorC1ERKSsS1_l+0x41) [0x44c081]
/opt/relion-3.1/bin/relion_refine_mpi(_ZN13BackProjector19externalReconstructER13MultidimArrayIdER8FileNameS2_S2_S2_S2_bdi+0x1d34) [0x5bb904]
/opt/relion-3.1/bin/relion_refine_mpi(_ZN14MlOptimiserMpi12maximizationEv+0x1245) [0x477155]
/opt/relion-3.1/bin/relion_refine_mpi(_ZN14MlOptimiserMpi7iterateEv+0x3d8) [0x47a858]
/opt/relion-3.1/bin/relion_refine_mpi(main+0x5f) [0x43a3ef]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f2028d0e3d5]
/opt/relion-3.1/bin/relion_refine_mpi() [0x43d84f]

Any suggestions would be very much appreciated.

Thanks.

best,
heejong

@biochem-fan
Copy link
Member

I guess the box size must be 96 px. @dkimanius, can you confirm?

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