mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-09 13:02:41 +02:00
Update the example near field ptycho code to use Poisson NLL
This commit is contained in:
@@ -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