recon_surf.spherically_project_wrapper

recon_surf.spherically_project_wrapper.call(command, **kwargs)[source]

Run command with arguments.

Wait for command to complete. Sends output to logging module.

Parameters:
commandstr

Command to call.

**kwargsAny

Keyword arguments.

Returns:
int

Returncode of called command.

recon_surf.spherically_project_wrapper.setup_options()[source]

Create a command line interface and return command line options.

Returns:
optionsargparse.Namespace

Namespace object holding options.

recon_surf.spherically_project_wrapper.spherical_wrapper(command1, command2, **kwargs)[source]

Run the first command. If it fails the fallback command is run instead.

Parameters:
command1str

Command to call.

command2str

Fallback command to call.

**kwargsAny

Arguments. The same as for the Popen constructor.

Returns:
code_1

Return code of command1. If command1 failed return code of command2.