Added a polarization dependent ptychography dataset class so we can save and load data!

This commit is contained in:
Abe Levitan committed 2021-07-26 14:46:02 -04:00
1 parent a36c6c8893
commit e7d7323e50
10 files changed
+560 -69

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ def standardize(probe, obj, obj_slice=None, correct_ramp=False):
else:
single_probe = False
normalization = t.sqrt(t.sum(t.abs(probe[0])**2) / (len(probe[0].view(-1))))
normalization = t.sqrt(t.mean(t.abs(probe[0])**2))
probe = probe / normalization
obj = obj * normalization