cli.route

Contents

cli.route#

bartorch.cli.route()#

Whether this command line runs as an app or as the command.

The decision needs the arrays – which axes a -R bitmask names depends on the image’s rank, and what mobafit and moba fit depends on the times they are given – so the inputs are read here and handed on.

Returns:

  • where ({‘app’, ‘command’})

  • plan (dict or None) – {'call': Call, 'outputs': [path, ...]}: what the app is called with and the files its answer is written to, or None under 'command'.