ChangeDataBaseDocument#

class lstcam_calib.tools.change_database_document.ChangeDataBaseDocument(**kwargs: Any)#

Bases: Tool

Tool to change a database document.

Attributes Summary

aliases

calibration_type

Type of calibration

change_type

Type of change to be performed

classes

flags

input_file

Calibration file of the document

yes

If True, do not ask for confirmation.

Methods Summary

start()

Validate a calibration file in the database.

Attributes Documentation

aliases: StrDict = {'change': 'ChangeDataBaseDocument.change_type', 'db-name': 'CalibrationDB.db_name', 'db-url': 'CalibrationDB.db_url', 'tel-id': 'CalibrationDB.tel_id', ('b', 'base-dir'): 'CalibrationDB.data_tree_root', ('i', 'input'): 'ChangeDataBaseDocument.input_file', ('t', 'type'): 'ChangeDataBaseDocument.calibration_type'}#
calibration_type#

Type of calibration

change_type#

Type of change to be performed

classes: ClassesType = [<class 'lstcam_calib.io.database.CalibrationDB'>]#
flags: StrDict = {('y', 'yes'): ({'ChangeDataBaseDocument': {'yes': True}}, 'Do not ask for confirmation')}#
input_file#

Calibration file of the document

yes#

If True, do not ask for confirmation.

Methods Documentation

start()#

Validate a calibration file in the database.