Movie Import fails with ValueError (shape mismatch)

Hi,
I’m encountering this following error while importing movies in CS.

    [CPU: 568.1 MB]  Traceback (most recent call last):
      File "cryosparc_master/cryosparc_compute/run.py", line 84, in cryosparc_compute.run.main
      File "/home/emPackage/CS/cryosparc_master/cryosparc_compute/jobs/imports/run.py", line 908, in run_import_movies_or_micrographs
        imgdata = tiff.read_tiff(abs_path).sum(axis=0) * gainref
    ValueError: operands could not be broadcast together with shapes (8184,11520) (4092,5760) 

Please advise how can I recover from this crash.

Thank you.

@diffracteD, this error is saying your gain reference file and the tiff data are of different sizes. Is there any chance the gain reference file is incorrect?

1 Like

Thank you. I have to get back to slac to know what they gave me. I’m not sure if the file is incorrect. That was the only .mrc file present in GainRef directory with bunch of other .dm4 files.