watson.data_validation_report.DvrPreparer.DvrPreparer
- class watson.data_validation_report.DvrPreparer.DvrPreparer
Bases:
object
Class offering official data validation report download
- __init__()
Methods
__init__
()retrieve
(target_id, sectors, destination)Prepares the proper url for the given target_id data validation report and downloads it to the destination file :param str target_id: the target id :param List[int] sectors: the sectors of the DVR :param str destination: the destination file :return List[str]: list of downloaded files
Attributes
Dictionary containing the files preparer for each supported mission
- URL_BUILDERS: Dict[str, DvrUrlBuilder] = {'Kepler': <watson.data_validation_report.DvrPreparer.KeplerDvrUrlBuilder object>, 'TESS': <watson.data_validation_report.DvrPreparer.TessDvrUrlBuilder object>}
Dictionary containing the files preparer for each supported mission
- retrieve(target_id: str, sectors: List[int], destination: str) List[str]
Prepares the proper url for the given target_id data validation report and downloads it to the destination file :param str target_id: the target id :param List[int] sectors: the sectors of the DVR :param str destination: the destination file :return List[str]: list of downloaded files