# SelectionSet.load_single_package fails silently

XMLWordPrintable

## Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• Story Points:
0.5
• Team:
SQuaRE

## Description

When reading in the attached file via lsst.verify.SelectionSet.load_single_package, it returns an empty set. This means there is something wrong with the file, but the load fails silently. It should yell at me as to the issue with what I'm passing it.

## Attachments

1. sysver_specs.yaml
0.3 kB

## Activity

Hide
Angelo Fausti added a comment -

We clarified that the lsst.verify.SelectionSet.load_single_package method argument is a directory with the name of the package containing the specification YAML files for that package, instead of the name of the YAML file.

For the sysver metrics we should create a git repository with the following structure:

 sysver_metrics/  metrics/  .yaml  specs/  /  .yaml  .yaml 

Then we recommend using lsst.verify.MetricSet.load_metrics_package and lsst.verify.SpecificationSet.load_metrics_package methods which receive as argument the path to sysver_metrics in this case.

Show
Angelo Fausti added a comment - We clarified that the lsst.verify.SelectionSet.load_single_package  method argument is a directory with the name of the package containing the specification YAML files for that package, instead of the name of the YAML file. For the sysver metrics we should create a git repository with the following structure: sysver_metrics/ metrics/ <package_name>.yaml specs/ <package_name>/ <spec_set_1>.yaml <spect_set_2>.yaml Then we recommend using lsst.verify.MetricSet.load_metrics_package and lsst.verify.SpecificationSet.load_metrics_package methods which receive as argument the path to sysver_metrics in this case.

## People

• Assignee:
Angelo Fausti
Reporter:
Michael Reuter
Watchers:
Angelo Fausti, Michael Reuter