Class 2D - ValueError: total size of new array must be unchanged

Hi @prangley,

There was a bug in earlier versions of cryoSPARC where if you imported movies from separate folders that had non-unique names, cryoSPARC Patch Motion correction will incorrectly overwrite the files, which caused the particles to be also overwritten incorrectly, potentially causing the ValueError you see here in 2D Classification (the first time you would use the extracted particles).
The fix for this bug has been released in cryoSPARC v2.15.0. Unfortunately, you will need to re-run Patch Motion Correction and Extract From Micrographs (and all steps in between) in order to re-write the micrographs and particles that were incorrectly overwritten.

On the other hand, this bug also may arise from a corrupt data file, which was most likely the case why re-extracting the particle stack worked for @belousoff. If you know for certain the movie files you imported have unique file names (prior to v2.15.0), then it is worth checking the data integrity of the files you are trying to process.

To check the integrity of data files, see some helper scripts I’ve posted here:
For Raw .mrc Movies:

For Particle .mrc stacks: