armi.cli package

This package provides various operations users can ask ARMI to do with their inputs.

An Entry Point might run a simulation, migrate inputs, build a suite of related inputs and submit them in a parameter sweep, validate inputs, open the GUI, run a test suite, or other similar things. There are built-in entry points, and additional ones may be specified by custom plugins.

The full docs for entry points are here.

See also

armi.cases

Individual collections of tasks that may run one or more entry points. These allow one entry point to create a sequence of events that may call one or more additional entry points. For example, the submitSuite entry point builds a case suite with many related cases that will all call the run entry point from a HPC cluster.

armi.operators

Operations that ARMI will perform on a reactor model. These may be created by Case objects created by certain entry points (e.g. run).

armi

Fundamental entry point that calls this package.

class armi.cli.EntryPointsPlugin[source]

Bases: armi.plugins.ArmiPlugin

static defineEntryPoints()[source]
class armi.cli.ArmiParser(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True)[source]

Bases: argparse.ArgumentParser

Subclass of default ArgumentParser to better handle application splash text.

print_help(file=None)[source]
class armi.cli.ArmiCLI[source]

Bases: object

ARMI CLI – The main entry point into ARMI. There are various commands available, to get help for the individual commands, run again with <command> –help. Generically, the CLI implements functions that already exists within ARMI

static showVersion()[source]

Print the App name and version on the command line

listCommands()[source]

List commands with a short description.

run() Optional[int][source]
executeCommand(command, args) Optional[int][source]

execute command with arguments args, return optional exit code.

armi.cli.splash()[source]

Emit a the active App’s splash text to the runLog for the primary node.