From 6af72e1ce0007d4aae241e3203aea13350f4531e Mon Sep 17 00:00:00 2001 From: allevitan Date: Tue, 16 Jun 2026 16:13:51 +0200 Subject: [PATCH] Update the docs to include the new example for loading and viewing a ptychography reconstruction --- docs/source/examples.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/source/examples.rst b/docs/source/examples.rst index 29bd02e..6f356cd 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -86,6 +86,16 @@ Note also the use of :code:`model.save_on_exception` and :code:`model.save_to_h5 Finally, note that there are several small adjustments made to the script to counteract particular sources of error that are present in this dataset, for example the raster grid pathology caused by the scan pattern used. Also note that not every mixin is needed every time - in this case, we turn off optimization of the :code:`weights` parameter. +View Gold Ball Ptycho Results +----------------------------- + +This script shows how to load and view a saved ptychography reconstruction. + +.. literalinclude:: ../../examples/view_gold_ball_ptycho.py + +Note that :code:`obj_view_crop` and :code:`units` are directly set when loading from the saved reconstruction, because this information purely refers to the settings of the viewer in :code:`model.inspect()` and is not saved with the reconstruction. + + Near-Field Ptycho -----------------