← Back to the Export tab · Export, Stats & Notifications
Export Parameter Settings experimental
This script (export/DEVELOPMENT/export_parameters.script, a C-shell
script) writes the parameter settings a project was processed with
into one text file, for the methods section of a paper or to reproduce the
processing elsewhere: the project-wide parameters followed by those of the first
image, each later entry superseding earlier ones, with a header that explains how
to read the list. The image's proc/ directory — the scripts exactly
as they were run on it — is copied next to it.
Status. One of the four Development exports inherited from
Focus, not shown in 4D-STEM or Fibril picking projects and awaiting
porting. It reads the per-image
2dx_image.cfg and the
2dx_merge.cfg files of a Focus project; a 4d project keeps these
parameters in its database (merge/4d_project.db) and
4d_merge.cfg, so the script does not run as it stands. The
Project tab's parameter search covers part of the same
need.
Parameters
| Parameter | Role |
|---|---|
export_basedir | The export directory, here taken relative to merge/LOGS/; the files go into its FOCUS_PARAMETERS/ subdirectory. |
Algorithm
- Creates
LOGS/<export_basedir>/FOCUS_PARAMETERS/proc/. - Takes the first image directory of the project list (
2dx_merge_dirfile.dat) as the representative image. - Writes
FOCUS_parameters.txt: an explanatory header, then the project-wide configuration (2dx_merge.cfg), then the image's configuration (2dx_image.cfg). Sourced after the default configuration, the file sets the shell variables to the values used. - Copies the image's
proc/directory, which holds the scripts as the GUI generated and ran them. - Lists the text file and the
proc/directory as important results.