Update the example near field ptycho code to use Poisson NLL

This commit is contained in:
levita_a authored and allevitan committed 2026-04-03 18:48:35 +02:00
1 parent 3ccdc24d3f
commit b6553fd522
2 files changed
+2 -4

No files matched your search

+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
)