-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validator: catch exceptions, allow absence of comment, bump version
* Catch ParserError and IOError exceptions when loading YAML files. * Allow a submission.yaml file without an initial "comment" key. * Add tests to give 100% coverage. * Bump version to 0.1.15. Signed-off-by: Graeme Watt <graeme.watt@durham.ac.uk>
- Loading branch information
1 parent
d892918
commit 1c74478
Showing
6 changed files
with
115 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ | |
|
||
from __future__ import absolute_import, print_function | ||
|
||
__version__ = "0.1.14" | ||
__version__ = "0.1.15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
independent_variables: | ||
- header: {name: SQRT(S), units: GEV} | ||
values: | ||
- value: 7000 | ||
dependent_variables: | ||
- header: {name: SIG(total), units: FB} | ||
qualifiers: | ||
- {name: RE, value: P P --> Z0 Z0 X # note missing final "}" | ||
values: | ||
- value: 6.7 | ||
errors: | ||
- {symerror: 0.45, label: stat} | ||
- {asymerror: {plus: 0.4, minus: -0.3}, label: sys} | ||
- {symerror: 0.34, label: "sys,lumi"} | ||
- value: 5.7 | ||
errors: | ||
- {symerror: 0.4, label: stat} | ||
- {asymerror: {plus: 0.42, minus: 0.31}, label: sys} | ||
- {symerror: 0.4, label: "sys,lumi"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: "Table 3" | ||
location: Page 17 of preprint | ||
description: The measured fiducial cross sections. The first systematic uncertainty is the combined systematic uncertainty excluding luminosity, the second is the luminosity | ||
keywords: # used for searching, possibly multiple values for each keyword | ||
- { name: reactions, value: [P P --> Z0 Z0 X] # note missing final "}" | ||
- { name: observables, value: [SIG]} | ||
- { name: energies, value: [7000]} | ||
data_file: data3.yaml | ||
additional_resources: | ||
- location: "http:github.com/HEPData/hepdata" | ||
description: "Full source code for creating this data" | ||
- location: "http:github.com/HEPData/hepdata" | ||
description: "Full source code for creating this data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters