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

if refined positions are saved, they are also saved to dump files #509

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

kahntm
Copy link
Contributor

@kahntm kahntm commented Oct 13, 2023

When position correction is used within an engine, up to now, the refined positions were only saved in the last/reconstruction file written by that engine. As it can be interesting to track the refinement process of the scan positions over the iterations, it would be nice to also have the possibility to save the refined positions to the dump files.

The changes to ptypy/core/ptycho.py accomplish just this. Once the record_positions parameter is set, dump files also get filled with the positions. By default this parameter is still set to False. So it is a conscious decision by the user to have the positions saved.

@daurer
Copy link
Contributor

daurer commented Oct 13, 2023

@kahntm thanks for putting this PR, could you please rebase your commit on top of dev and then also change the target branch in the PR to dev
Thanks

@kahntm kahntm changed the base branch from master to dev October 13, 2023 10:47
@kahntm
Copy link
Contributor Author

kahntm commented Oct 13, 2023

rebased the commit and changed the target in the PR

@daurer daurer merged commit d6da828 into dev Oct 27, 2023
4 checks passed
@daurer daurer deleted the position_refine_saving branch October 27, 2023 15:30
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

Successfully merging this pull request may close these issues.

2 participants