![]() |
Belle II Software
release-08-02-04
|
Public Member Functions | |
| def | __init__ (self, whichcommand, args, db) |
| def | add_arguments (self) |
| def | get_iovs (self) |
| def | modify_db (self, func, func_args, whichcommand=None) |
Public Attributes | |
| whichcommand | |
| from whichcommand it is called (copy, delete or modify) | |
| db | |
| conditions_db.ConditionsDB instance | |
| iovfilter | |
| ItemFilter. | |
| num_all_iovs | |
| number of iovs before payload and revision selection | |
| past_dict | |
| Dictionary with past participles. | |
Private Attributes | |
| _args | |
| argparse.ArgumentParser instance | |
Class to unify common parts of b2conditionsdb iovs commands This class defines common argparse arguments, common filter of iovs and common multithreading
Definition at line 482 of file cli_management.py.
| def __init__ | ( | self, | |
| whichcommand, | |||
| args, | |||
| db | |||
| ) |
initialization, just remember the arguments or parser and the database instance
Args:
whichcommand (str): from whichcommand it is called (copy, delete or modify)
args (argparse.ArgumentParser): where to append new arguments
db (conditions_db.ConditionsDB): database instance to be used
Definition at line 490 of file cli_management.py.
| def add_arguments | ( | self | ) |
Add arguments to the parser
Definition at line 512 of file cli_management.py.
| def get_iovs | ( | self | ) |
Get the iovs already filtered
Definition at line 555 of file cli_management.py.
| def modify_db | ( | self, | |
| func, | |||
| func_args, | |||
whichcommand = None |
|||
| ) |
Modify the database using multithreading
Definition at line 580 of file cli_management.py.