Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about importing tomo data with dose from mdoc file. #1188

Open
frozenfas opened this issue Oct 7, 2024 · 0 comments
Open

Questions about importing tomo data with dose from mdoc file. #1188

frozenfas opened this issue Oct 7, 2024 · 0 comments

Comments

@frozenfas
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant