playnano.cli.handlers module¶
Handlers for the playNano CLI commands.
- playnano.cli.handlers.handle_analyze(args: Namespace) None[source]¶
Handle the ‘analyze’ subcommand: run only analysis & export results.
- playnano.cli.handlers.handle_play(args: Namespace) None[source]¶
Handle the ‘play’ subcommand: feed arguments into the run_pipeline_mode function.
- Parameters:
args (argparse.Namespace) – Must contain: - input_file (str): path to AFM data - channel (str) - processing_str (str or None) - processing_file (str or None) - output_folder (str or None) - output_name (str or None) - scale_bar_nm (int or None), 0 turns off scale bar - zmin (float or str), minimum Z-value for normalization (‘auto` for 1st percentile) - zmax (float or str), maximum Z-value for normalization (‘auto` for 99th percentile) - cmap (str), name of colormap to use for visualisation (default=afm_brown)
- Return type:
None
- playnano.cli.handlers.handle_process(args: Namespace) None[source]¶
Handle the ‘process’ subcommand: feed arguments into the run_pipeline_mode function.
- Parameters:
args (argparse.Namespace) – Must contain: - input_file (str): path to AFM data - channel (str) - processing_str (str or None) - processing_file (str or None) - export (str or None), comma-separated formats like “tif,npz,h5” - make_gif (bool), whether to create a GIF - output_folder (str or None) - output_name (str or None) - scale_bar_nm (int or None), 0 turns off scale bar - zmin (float or str), minimum Z-value for normalization (‘auto` for 1st percentile) - zmax (float or str), maximum Z-value for normalization (‘auto` for 99th percentile) - cmap (str), name of colormap to use for animated visualisation export (default=afm_brown)
- Return type:
None
- playnano.cli.handlers.handle_wizard(args: Namespace) None[source]¶
Interactive wizard for building both processing and analysis pipelines.
- Usage:
playnano processing <input_file> [–channel …] [–output-folder …] [–output-name …]
- After launch, commands include:
add/remove/move/list/save/load/run for processing steps aadd/aremove/amove/alist/asave/aload/arun for analysis steps help show available commands quit exit without running
- Parameters:
args (argparse.Namespace) – Must contain: - input_file (str): path to AFM data - channel (str) - output_folder (str or None) - output_name (str or None) - scale_bar_nm (int or None), 0 disables scale bar - cmap (str), name of colormap to use for visualisation (default=afm_brown)
- Return type:
None