playnano.cli.handlers module¶
Functions that run each playnano subcommand from its parsed arguments.
Each handler passes the options to the matching function in
playnano.cli.actions. If that raises an error, the handler logs it
(with the traceback at --log-level DEBUG) and exits with status 1.
- playnano.cli.handlers.handle_analyze(args: Namespace) None[source]¶
Run
playnano analyze: analyse a stack and save the results.Calls
playnano.cli.actions.analyze_pipeline_mode().- Parameters:
args (argparse.Namespace) – Parsed options:
input_file,channel,analysis_steps,analysis_file,output_folderandoutput_name.
- playnano.cli.handlers.handle_play(args: Namespace) None[source]¶
Run
playnano play: open a stack in the GUI.Calls
playnano.cli.actions.play_pipeline_mode().- Parameters:
args (argparse.Namespace) – Parsed options:
input_file,channel,processing,processing_file,output_folder,output_name,scale_bar_nm,zmin,zmax,cmapandfps.
Notes
If
input_filecontains option flags such as--channel, which happens when a quoted Windows path ends in a backslash, the error explains how to fix the path. Any error is logged and the command exits with status 1.
- playnano.cli.handlers.handle_process(args: Namespace) None[source]¶
Run
playnano process: process a stack and export the results.Calls
playnano.cli.actions.process_pipeline_mode().- Parameters:
args (argparse.Namespace) – Parsed options:
input_file,channel,processing,processing_file,export,make_gif,make_video,make_sequence,output_folder,output_name,scale_bar_nm,zmin,zmax,draw_ts,cmapandfps.
- playnano.cli.handlers.handle_wizard(args: Namespace) None[source]¶
Run
playnano wizard: build and run pipelines interactively.Starts a
playnano.cli.actions.Wizard; typehelpat its prompt for the commands.- Parameters:
args (argparse.Namespace) – Parsed options:
input_file,channel,output_folder,output_name,scale_bar_nmandcmap.