mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-24 22:27:57 +01:00
Added a polarization dependent ptychography dataset class so we can save and load data!
This commit is contained in:
1 parent
a36c6c8893
commit
e7d7323e50
10 files changed
+560
-69
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user