armi.cli.database module¶
Entry point into ARMI for manipulating output databases.
-
class
armi.cli.database.
ConvertDB
[source]¶ Bases:
armi.cli.entryPoint.EntryPoint
Convert databases between different versions
-
name
= 'convert-db'¶
-
mode
= 1¶
-
addOptions
()[source]¶ Add additional command line options.
Values of options added to
self.parser
will be available onself.args
. Values added withcreateOptionFromSetting
will override the setting values in the settings input file.See also
createOptionFromSetting()
A method often called from here to creat CLI options from application settings.
argparse.ArgumentParser.add_argument()
Often called from here using
self.parser.add_argument
to add custom argparse arguments.
-
invoke
()[source]¶ Body of the entry point.
This is an abstract method, and must must be overridden in sub-classes.
-
settingsArgument
= None¶
-
-
class
armi.cli.database.
ExtractInputs
[source]¶ Bases:
armi.cli.entryPoint.EntryPoint
Recover input files from a database file.
This can come in handy when input files need to be hand-migrated to facilitate loading or migration of the database file itself, or when attempting to re-run a slightly-modified version of a case.
-
name
= 'extract-inputs'¶
-
mode
= 1¶
-
addOptions
()[source]¶ Add additional command line options.
Values of options added to
self.parser
will be available onself.args
. Values added withcreateOptionFromSetting
will override the setting values in the settings input file.See also
createOptionFromSetting()
A method often called from here to creat CLI options from application settings.
argparse.ArgumentParser.add_argument()
Often called from here using
self.parser.add_argument
to add custom argparse arguments.
-
invoke
()[source]¶ Body of the entry point.
This is an abstract method, and must must be overridden in sub-classes.
-
settingsArgument
= None¶
-
-
class
armi.cli.database.
InjectInputs
[source]¶ Bases:
armi.cli.entryPoint.EntryPoint
Insert new inputs into a database file, overwriting any existing inputs.
This is useful for performing hand migrations of inputs to facilitate database migrations.
-
name
= 'inject-inputs'¶
-
mode
= 1¶
-
addOptions
()[source]¶ Add additional command line options.
Values of options added to
self.parser
will be available onself.args
. Values added withcreateOptionFromSetting
will override the setting values in the settings input file.See also
createOptionFromSetting()
A method often called from here to creat CLI options from application settings.
argparse.ArgumentParser.add_argument()
Often called from here using
self.parser.add_argument
to add custom argparse arguments.
-
invoke
()[source]¶ Body of the entry point.
This is an abstract method, and must must be overridden in sub-classes.
-
settingsArgument
= None¶
-