Coverage for python/lsst/ap/verify/config.py : 65%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# # This file is part of ap_verify. # # Developed for the LSST Data Management System. # This product includes software developed by the LSST Project # (http://www.lsst.org). # See the COPYRIGHT file at the top-level directory of this distribution # for details of code ownership. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. #
"""Confuration manager for ``ap_verify``.
This is a singleton `lsst.daf.persistence.Policy` that may be accessed from other modules in ``ap_verify`` as needed using `Config.instance`. Please do not construct objects of this class directly.
Objects of this type are immutable. """
"""Test that the loaded configuration is correct.
Raises ------ RuntimeError Raised if validation failed """ raise TypeError('`datasets` is not a dictionary') except (KeyError, TypeError) as e: raise RuntimeError('Invalid config file.') from e
raise TypeError('`measurements` is not a dictionary') raise TypeError('`measurements.timing` is not a dictionary') except (KeyError, TypeError) as e: raise RuntimeError('Invalid config file.') from e
return self._allInfo[key]
return key in self._allInfo
""" |