Coverage for bin/validateDrp.py : 60%

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
#!/Users/square/j/ws/release/tarball/ad013b8585/build/python/miniconda3-4.7.10/envs/lsst-scipipe-4d7b902/bin/python # noqa
# LSST Data Management System # Copyright 2008-2016 AURA/LSST. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # 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 LSST License Statement and # the GNU General Public License along with this program. If not, # see <https://www.lsstcorp.org/LegalNotices/>.
# Ensure that this script will run on a mis-configured node # that may default to a backend that requires X # e.g., 'Qt5Agg', even though there is is no display available # Putting this here in the command-line script is fine because no one # should import this script.
Calculate and plot validation Key Project Metrics from the LSST SRD. http://ls.st/LPM-17
Produces results to: STDOUT Summary of key metrics REPONAME*.png Plots of key metrics. Generated in current working directory. REPONAME*.json JSON serialization of each KPM.
where REPONAME is based on the repository name but with path separators replaced with underscores. E.g., "Cfht/output" -> "Cfht_output_" """
formatter_class=argparse.RawDescriptionHelpFormatter) help='path to a repository containing the output of processCcd') help=""" Define basic name prefix for output files. Can include paths. E.g., --outputPrefix="mydir/awesome_reduction" will produce "mydir/awesome_reduction_r.json" for the r-band JSON file. """) help='YAML configuration file validation parameters and dataIds.') default='verify_metrics', help='Name of the repository with YAML definitions of LPM-17 metrics.') help='Display additional information about the analysis.') default=True, action='store_false', help='Skip making plots of performance.') help='Level of SRD requirement to meet: "minimum", "design", "stretch"')
# Should clean up the duplication here between this and validate.run else: load_json = False
if args.configFile: pbStruct = util.loadDataIdsAndParameters(args.configFile) kwargs = pbStruct.getDict()
if not args.configFile or not pbStruct.dataIds: kwargs['dataIds'] = util.discoverDataIds(args.repo) if args.verbose: print("VISITDATAIDS: ", kwargs['dataIds'])
kwargs['metrics_package'] = args.metricsPackage
|