Ifftcenter3 error

I’m playing with some simulated data and I’m getting this error every once and a while.

I understand my data is missing a lot of the features/measurements that come with real data, but since this only happens with ~10% of my sets I figured I’d ask.

Is there anything I can change/do to stop this error from happening?

Traceback (most recent call last):
  File "/home/d/cryosparc/cryosparc-compute/sparcjob.py", line 552, in <module>
    superspeed = job_type=='superrefine')
  File "/home/d/cryosparc/cryosparc-compute/refinement.py", line 162, in refine
    rMJ = fourier.resample_real(initmodel, N)
  File "/home/d/cryosparc/cryosparc-compute/fourier.py", line 175, in resample_real
    fft(x, stack=stack), N, rescale, stack), stack=stack)
  File "/home/d/cryosparc/cryosparc-compute/fourier.py", line 121, in ifft
    return ifftcenter3(X, fft_threads)
  File "/home/d/cryosparc/cryosparc-compute/fourier.py", line 86, in ifftcenter3
    assert all([d%2 == 0 for d in fv.shape])
AssertionError

Okay I realized what the problem was. I should have looked at the error more closely… cryosparc can only handle images that are even in shape. I added another row and column to my data and it refines properly now.

I don’t know how to mark as solved, but all fixed now I guess!