mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-10-28 10:51:31 +01:00
Update the example near field ptycho code to use Poisson NLL
This commit is contained in:
1 parent
3ccdc24d3f
commit
b6553fd522
2 files changed
+2
-4
No files matched your search
@@ -26,7 +26,8 @@ model = cdtools.models.FancyPtycho.from_dataset(
|
||||
near_field=True,
|
||||
propagation_distance=3.65e-3, # 3.65 downstream from focus
|
||||
units='um', # Set the units for the live plots
|
||||
obj_view_crop=-35,
|
||||
obj_view_crop=-35, # Expand the view for the live plots
|
||||
loss="poisson_nll", # Best option for photon-counting detectors
|
||||
panel_plot_mode=True, # Set to False to get individual figures
|
||||
)
|
||||
|
||||
|
||||
@@ -138,11 +138,8 @@ def test_near_field_ptycho(near_field_ptycho_cxi, reconstruction_device, show_pl
|
||||
n_modes=1,
|
||||
near_field=True,
|
||||
propagation_distance=3.65e-3, # 3.65 downstream from focus
|
||||
<<<<<<< HEAD
|
||||
panel_plot_mode=False, # test without panel plot mode
|
||||
=======
|
||||
loss='poisson_nll',
|
||||
>>>>>>> f0f1577 (Add loss function coverage to slow reconstruction tests)
|
||||
)
|
||||
|
||||
print('Running reconstruction on provided reconstruction_device,',
|
||||
|
||||
Reference in new issue
Block a user