tomotwin-cryoet
tomotwin-cryoet copied to clipboard
IndexError: Boolean index has wrong length
Hi all, I am getting the following error when i am trying to save selected particles.
File ~/.local/lib/python3.10/site-packages/pandas/core/indexers/utils.py:539, in check_array_indexer(array=Index([3313, 3314, 3315, 3316, 3317, 3318, 3319,...5, 4866, 4867], dtype='int64', length=1555), indexer=<class 'numpy.ndarray'> (4868,) bool) 537 # GH26658 538 if len(indexer) != len(array): --> 539 raise IndexError( 540 f"Boolean index has wrong length: " 541 f"{len(indexer)} instead of {len(array)}" 542 ) 543 elif is_integer_dtype(dtype): 544 try:
IndexError: Boolean index has wrong length: 4868 instead of 1555 ################################################## How can i change the length, which seems causing the problem while the saving the coordinates.
Thank you, Pankaj.