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

Problem with saving results #38

Open
NG419 opened this issue Jun 9, 2023 · 1 comment
Open

Problem with saving results #38

NG419 opened this issue Jun 9, 2023 · 1 comment

Comments

@NG419
Copy link

NG419 commented Jun 9, 2023

Hi,

I am a student in physics working on ptychography. For my FPM experiment I need to reconstruct the images so I gave PtyLab a try. Actually I manage to preprocess my datas, reconstruct and the plots look correct. But my problem is that whenever I try to save the results with the saveResults() function (put right after engine.reconstruct() just like in your jupyter tutorial)of the Reconstruction file I keep getting empty datas. This seems to be coming from the self.object array being an empty array of zeros but cannot find why. The same thing happens if I try to plot reconstruction.object directly after the reconstruction. Does anyone have a solution? Or another way to save the reconstructed image in its upscaled resolution?

Thank you very much,
NG

@dboonz
Copy link
Member

dboonz commented Jan 17, 2024

Hi NG,

Sorry for the delay in getting back to you. Do you still have this problem? If so, could you modify helical_beam.py, such that it reproduces your error?

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

2 participants