Update the example near field ptycho code to use Poisson NLL

This commit is contained in:
2026-04-03 18:48:35 +02:00
committed by allevitan
parent 3ccdc24d3f
commit b6553fd522
2 changed files with 2 additions and 4 deletions
+2 -1
View File
@@ -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
)
-3
View File
@@ -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,',