-
Notifications
You must be signed in to change notification settings - Fork 17
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
Load probes #241
base: master
Are you sure you want to change the base?
Load probes #241
Conversation
Now you can pass a Storage to
|
Hi Alex, |
I expected no less!
Ok, if that's really a requirement then we can drop the storage param and only accept the 'recon' string, and whoever really wants to input a storage can just engineer the corresponding ptyr file.
I think being able to process it with the illumination module makes sense. For example if I did a successful reconstruction at some distance from the focus, and I move the sample to a more challenging plane for some reason (to do Bragg ptycho in focus, perhaps), it would be nice to load it and then say
I'm not sure I follow here, I use the |
The input probe is now resampled to match the real space pixel size of the experiment if needed. Also, Storage objects can be supplied as illumination.model.
Might have missed something important here as I was focused on making a specific application run. But take a look.
To see how it works, first reconstruct with minimal_prep_and_run.py, then modify it to use the reconstructed probe and a different shape, and see how the loaded probe changes size.