K3 gain ref as output via EPU not working in CS-Live?

Hello fellow cryosparcer’s, In CS Live when I use the gain ref from EPU on a K3 run, I get the following error:

File “cryosparc_master/cryosparc_compute/jobs/motioncorrection/patchmotion.py”, line 112, in cryosparc_compute.jobs.motioncorrection.patchmotion.prepare_movie_for_processing
numpy.core._exceptions._UFuncOutputCastingError: Cannot cast ufunc ‘multiply’ output from dtype(‘float64’) to dtype(‘uint8’) with casting rule ‘same_kind’

The pixels of the gain reference may be of the “wrong” data type. If this is in fact the problem, you may convert the gain reference to a supported format using this sequence of python commands (slightly modified from my colleague’s original sequence):

import numpy as np
from cryosparc import mrc
header, data = mrc.read('/path/to/gain.mrc')
data = np.array(data, dtype=np.float32)
mrc.write('/path/to/gain_float32.mrc', data, header.xlen)

Assumptions: