Downsampling error

Hi,

In 4.5.1, Downsampling gives an error if one chooses to resample to a certain pixel size, without selecting the box to crop to. Of course one can set the “crop to” box the same as the input, but for convenience I think this should be the default behavior if this parameter is not set, rather than throwing an error.

Cheers
Oli

Error:

Traceback (most recent call last):
  File "cryosparc_master/cryosparc_compute/run.py", line 115, in cryosparc_master.cryosparc_compute.run.main
  File "/home/exx/cryosparc/cryosparc_worker/cryosparc_compute/jobs/extract/run.py", line 896, in run_downsample_particles
    extent = N_crop * particles_dset['blob/psize_A'][0]
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
Traceback (most recent call last):
  File "cryosparc_master/cryosparc_compute/run.py", line 115, in cryosparc_master.cryosparc_compute.run.main
  File "/home/exx/cryosparc/cryosparc_worker/cryosparc_compute/jobs/extract/run.py", line 896, in run_downsample_particles
    extent = N_crop * particles_dset['blob/psize_A'][0]
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Params:

Hi @oli, thanks for pointing this out. I’d consider this a bug and have recorded it as such.
– Harris