Fig. 2The executable launch overrides two function defaults; ZEN detail-image opening remains off.
cd /d "F:\Pixi_Projects\zen_czi\smartmicroscopy"
pixi run --locked -e default python "examples\control_zen_via_zenapi\zenapi_guidedacq.py"
Use CMD from the workshop root. The workspace is pixi_smartmic; the environment is default. Configure my_config.ini and the detail experiment ZEN_API_GuidedAcq before running. Options are Python parameters, not CLI flags.
One run folder carries the generated files
WORKING LOCATION
ZEN image output directory
GA_<UTC date>_<UTC time>/
Overview copy: OverViewScan_OV.czi
Overlay preview: OverViewScan_OV.png
Label image: OverViewScan_seg.czi
Object table: OverViewScan_seg.csv
Detail images: zenapi_detail_<id>.czi
The PNG depends on show_segresults. The original overview stays in data.
FINAL LOCATION / move_results=True
Workshop results
results/guided_acq/GA_<UTC date>_<UTC time>/
The complete working folder moves here after acquisition. Detail-image opening and the summary use the final paths.
If disabled: the folder stays under ZEN's image output directory.
If the destination exists: raise FileExistsError and leave the new run at the source.
Unrelated output files and verbose-mode saved experiment definitions are not collected.
Fig. 3Relocation moves the gathered run folder, not the source overview or unrelated ZEN files.
The comparison shows context, boundaries, and detail
LEFT PANEL
Overview
Read channel zero from filepath_overview.
Original image context.
MIDDLE PANEL
Segmentation
Display the same overview and draw detected polygon outlines.
Not the label-mask CZI.
RIGHT PANEL
First detail
Read channel zero from the first acquired detail CZI.
If absent: No detail scans acquired.
Fig. 4The final window is a side-by-side comparison, not an automatically saved summary image.
The earlier overlay PNG is exported separately. If acquisition or moving fails, inspect the working paths for partial files; there is no automatic rollback.
The acquisition loop finishes before result relocation
Fig. 5Each detected object triggers a live detail scan; output relocation and comparison follow successful acquisition.