Patch Motion Correction: "Not enough patches to constrain spline fit..."

Hi everyone,

I’m running patch motion correction across 3 GPUs, and suddenly get:

Error occurred while processing J1/imported/000743242479319054128_FoilHole_15572093_Data_15571473_15571475_20230315_114910_fractions.tiff
Traceback (most recent call last):
  File "/opt/cryosparc/cryosparc_worker/cryosparc_compute/jobs/pipeline.py", line 60, in exec
    return self.process(item)
  File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/run_patch.py", line 177, in cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process
  File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/run_patch.py", line 180, in cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process
  File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/run_patch.py", line 182, in cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process
  File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/patchmotion.py", line 255, in cryosparc_compute.jobs.motioncorrection.patchmotion.unbend_motion_correction
  File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/patchmotion.py", line 311, in cryosparc_compute.jobs.motioncorrection.patchmotion.unbend_motion_correction
AssertionError: Not enough patches to constrain spline fit

Marking J1/imported/000743242479319054128_FoilHole_15572093_Data_15571473_15571475_20230315_114910_fractions.tiff as incomplete and continuing...

image parameters are following:

 [CPU:  249.8 MB  Avail: 214.63 GB]

               mscope_params/accel_kv :  {300.0}
[CPU:  249.8 MB  Avail: 214.63 GB]

                  mscope_params/cs_mm :  {2.7}
[CPU:  249.8 MB  Avail: 214.63 GB]

    mscope_params/total_dose_e_per_A2 :  {50.0}
[CPU:  249.8 MB  Avail: 214.63 GB]

           mscope_params/exp_group_id :  {0}
[CPU:  249.8 MB  Avail: 214.63 GB]

            mscope_params/phase_plate :  {0}
[CPU:  249.8 MB  Avail: 214.63 GB]

              mscope_params/neg_stain :  {0}
[CPU:  249.8 MB  Avail: 214.63 GB]

                   movie_blob/psize_A :  {836.0}
[CPU:  249.8 MB  Avail: 214.63 GB]

                     movie_blob/shape :  [  50 4092 5760]
[CPU:  249.8 MB  Avail: 214.63 GB]

         movie_blob/is_gain_corrected :  {0}

ok, I guess posting here helped – I noticed that I forgot “0.” when writing pixel size.

Anyway, since I couldn’t find this question on forum, I’ll leave it here for the future :slight_smile:

2 Likes

Well done @marinegor. Just to confirm: Do you consider this issue resolved?

yes! I marked my own reply as a solution, if that’s ok.

1 Like