Inspect particle picks error - ValueError: range parameter must be finite

I got an error during inspect picks

[CPU: 196.3 MB]  Traceback (most recent call last):
  File "cryosparc2_master/cryosparc2_compute/run.py", line 85, in cryosparc2_compute.run.main
  File "cryosparc2_compute/jobs/manual_picker/run_inspect_simple.py", line 353, in run_inspect_simple
    ax.hist2d(xvals, yvals, bins=50, range=[[xmin,xmax],[ymin,ymax]])
  File "/home/mohammad/cryosparc2c/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/matplotlib/__init__.py", line 1812, in inner
    return func(ax, *args, **kwargs)
  File "/home/mohammad/cryosparc2c/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 6327, in hist2d
    normed=normed, weights=weights)
  File "/home/mohammad/cryosparc2c/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/numpy/lib/twodim_base.py", line 714, in histogram2d
    hist, edges = histogramdd([x, y], bins, range, normed, weights)
  File "/home/mohammad/cryosparc2c/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.py", line 749, in histogramdd
    'range parameter must be finite.')
ValueError: range parameter must be finite.

I got that error after: import micrographs -> CTF estimation -> exposure curation -> blob picking -> inspect particle picks.

My work around was to do extract from micrographs after blob picking.
I could do the following, and didn’t get an error on inspect picks.
… -> blob picking -> extract from micrographs -> 2D classification -> select templates -> template picking -> inspect picks

Suggestions for trouble shooting and what might be going on. Something in blob picks.

Actually inspect picks after template picking only worked with a subset of micrographs, but failed on all of them. There must be a “bad” micrograph. If I toggle off "Calibrate Pick score to CTF, “Calibrate Power score to CTF” in inspect picks the error goes away.

1 Like