We ran into the error below, essentially the angle of astigmatism being outside of -2pi<ang<2pi. Changing the angle to a number within the relevant range solved the problem. The values of astigmatism outside of the normal range were output by GCTF, and we didn’t realize this. It’s possible that other softwares will have this issue. Might be worth adding a simple check to make sure that any angle gets constrained to -2pi<ang<2pi.
Traceback (most recent call last):
File “/home/cryospuser/cryosparc/cryosparc-compute/sparc/streamlog.py”, line 438, in run_with_except_hook
run_old(*args, **kw)
File “/home/cryospuser/cryosparc/cryosparc-compute/engine/cuda_core.py”, line 98, in run
self.target(self.args, dev=self.dev, thidx=self.thidx)
File “/home/cryospuser/cryosparc/cryosparc-compute/engine/engine.py”, line 852, in work
ET.setup_current_data_and_ctf(radwn, ctf_phase_flip_only=ctf_phase_flip_only, scale_ctf_use_current=False)
File “/home/cryospuser/cryosparc/cryosparc-compute/engine/engine.py”, line 180, in setup_current_data_and_ctf
ctfs = [img.get_parametric_ctf() for img in self.batch]
File “/home/cryospuser/cryosparc/cryosparc-compute/dataio/data.py”, line 155, in get_parametric_ctf
self.parametric_ctf = ctf.ParametricCTF(params=p)
File “/home/cryospuser/cryosparc/cryosparc-compute/ctf/ctf.py”, line 73, in init
raise exceptions.RuntimeError(‘Astigmatism angle is outside [-2 pi, 2 pi]: {0} rad, {1} deg. Likely a missing degrees to radians conversion.’.format(angast,180angast/n.pi))
RuntimeError: Astigmatism angle is outside [-2 pi, 2 pi]: -8.63937979737 rad, -495.0 deg. Likely a missing degrees to radians conversion.