llg3d.post.utils

Command-line argument parsing for post-processing scripts.

Functions

get_cli_args(description, default_image_filepath)

Parse command-line arguments for post-processing scripts.

get_x_coords(result)

Extract x coordinates from the result.

get_x_coords(result)[source]

Extract x coordinates from the result.

Parameters:

result (RunResults) – RunResults object

Returns:

x coordinates as a numpy array

Return type:

ndarray

get_cli_args(description, default_image_filepath)[source]

Parse command-line arguments for post-processing scripts.

Parameters:
  • description (str | None) – Description of the script for the help message.

  • default_image_filepath (Path) – Default path to save the output image.

Returns:

Parsed command-line arguments.

Return type:

Namespace