4d — Manual Processing

Running scripts on a dataset · 4d User Manual

← Back to the Manual Processing tab

Manual Processing — run scripts on one dataset

The Manual Processing tab is where you run individual processing scripts on a single dataset and watch the result. You open a dataset here by double-clicking it in the Library; it appears as a closable tab. You then pick a script category on the left, choose a script, set its parameters, press Run, and inspect the log, computed values and result images.

The numbered markers on the screenshot below point to each region; the legend that follows explains them. The ? button at the top-right of the window (where the dataset count normally sits) opens this page.

The Manual Processing window with numbered regions 1 2 3 4 5 6 7 8 9 10 11 12 13
#RegionWhat it is and does
1Dataset tabEach dataset you open (by double-clicking it in the Library) becomes a closable tab here. A tab turns green with a running icon while its script executes and cannot be closed until it finishes.
2Script categoriesThe vertical rail of script modules — Prepare, py4Dstem, TorchSlice, PtychoBones, ePIE, iDPC, Align, SHARP, Process, Fibrils, Development, Utility. Pick a category to list its scripts. (See the processing sections for what each contains.)
3Script listThe scripts in the selected category. Each row has a Python (.py) or C-shell (.csh) icon, and — when the script declares a help target — a small ? button at the right that opens that script's manual page.
4Script nameThe title of the selected script.
5Action buttonsFrom left: the Python-environment selector (for Python scripts), the Run/Stop button, Reload & save results, and Save this configuration as project default. A progress bar fills the title while a script runs.
6Setup togglesRun in FAST mode (sets fast_mode for the script), Show manual section, Show advanced parameters, and a Search Parameters box.
7Manual sectionThe selected script's own help text (from its # MANUAL: lines). Its ? opens the script's manual page. Hide it with the toggle in (6).
8ParametersThe script's parameters, grouped into sections (e.g. Sample, 4D STEM, Image File). Edit the values here before running; a lock icon marks locked or global (project-wide) parameters.
9OutputThe live standard-output/error log. The Verbosity Level slider chooses how much is shown — None / Low / Medium / High (the three verbosities plus off). Double-click to open the external log browser.
10ResultsA Parameter → Value table of the values the script wrote back (e.g. detector dimensions, statistics, computed geometry).
11ImagesThe result images the script produced. Right-click for display options (open in the viewer or the Fourier Analyzer, or reveal in the file system); the toggle shows important images only.
12File PreviewA preview of the selected result file with its header / file information.
13Panel buttonsShow or hide the Parameters, Output, History and Results panels.

Running a script

  1. Open a dataset by double-clicking it in the Library — it opens as a tab here (1).
  2. Choose a category (2) and then a script (3). Its manual text (7) and parameters (8) fill in.
  3. Pick the Python environment (5) if the script is a Python script, and set the parameters (8) — turn on Show advanced parameters (6) if you need the less common ones.
  4. Press Run (5). The log streams into Output (9); raise the Verbosity Level to see more detail.
  5. Inspect the results: computed values in Results (10), output images in Images (11) — right-click one to open it in the viewer or Fourier Analyzer — and the header/preview in File Preview (12).
  6. Optionally save the parameters as the project default (5) so the next dataset starts from them.
The same scripts run in batch across many datasets from the AutoProcess tab — Manual Processing is for running and tuning them interactively on one dataset at a time.