You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a tomography dataset in which the dose is not always even in all images because duplicate images were taken that needed to be removed.
I noticed in the code there was some facility to import dose directly from the mdoc file (i.e. in relion/src/tomography_python_programs/_utils/mdoc.py), but could not figure out how to access this in the GUI by setting dose_per_tilt_image to None. Is it possible to do in the GUI?
to access it through the GUI, would it be possible to change the code as pasted below (i.e. change "dose_per_tilt_image is not None" to "dose_per_tilt_image >= 0"?
dose_override_provided = ( dose_per_tilt_image >= 0 or dose_per_movie_frame is not None )
Also, does pre_exposure_dose start from 0 (assuming no pre-exposure), while in the mdoc, at least the one I have, "ExposureDose" tells me the dose on the current image? In this case, is it necessary to add a 0 at the beginning of the cumsum like this "pre_exposure_dose = np.concatenate(([0], np.cumsum(df["ExposureDose"].to_numpy())[0:-1]))"
if "ExposureDose" in df.columns and dose_override_provided is False: pre_exposure_dose = np.concatenate(([0], np.cumsum(df["ExposureDose"].to_numpy())[0:-1]))
I apologize in advance if I misunderstood anything or made a dumb mistake, or have a non-standard mdoc :)
The text was updated successfully, but these errors were encountered:
Hello, I have a tomography dataset in which the dose is not always even in all images because duplicate images were taken that needed to be removed.
I noticed in the code there was some facility to import dose directly from the mdoc file (i.e. in relion/src/tomography_python_programs/_utils/mdoc.py), but could not figure out how to access this in the GUI by setting dose_per_tilt_image to None. Is it possible to do in the GUI?
to access it through the GUI, would it be possible to change the code as pasted below (i.e. change "dose_per_tilt_image is not None" to "dose_per_tilt_image >= 0"?
dose_override_provided = ( dose_per_tilt_image >= 0 or dose_per_movie_frame is not None )
Also, does pre_exposure_dose start from 0 (assuming no pre-exposure), while in the mdoc, at least the one I have, "ExposureDose" tells me the dose on the current image? In this case, is it necessary to add a 0 at the beginning of the cumsum like this "pre_exposure_dose = np.concatenate(([0], np.cumsum(df["ExposureDose"].to_numpy())[0:-1]))"
if "ExposureDose" in df.columns and dose_override_provided is False: pre_exposure_dose = np.concatenate(([0], np.cumsum(df["ExposureDose"].to_numpy())[0:-1]))
I apologize in advance if I misunderstood anything or made a dumb mistake, or have a non-standard mdoc :)
The text was updated successfully, but these errors were encountered: