Skip to content

Commit fcd4c53

Browse files
kratsgmatthewfeickert
authored andcommitted
update schema to allow for constraint definition at the modifier level in channelspec
1 parent 5b10063 commit fcd4c53

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/pyhf/schemas/1.0.0/defs.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@
109109
},
110110
"required": ["lo_data", "hi_data"],
111111
"additionalProperties": false
112-
}
112+
},
113+
"constraint": { "type": "string", "enum": [ "gaussian", "poisson" ] }
113114
},
114115
"required": ["name", "type", "data"],
115116
"additionalProperties": false
@@ -119,7 +120,8 @@
119120
"properties": {
120121
"name": { "const": "lumi" },
121122
"type": { "const": "lumi" },
122-
"data": { "type": "null" }
123+
"data": { "type": "null" },
124+
"constraint": { "type": "string", "enum": [ "gaussian", "poisson" ] }
123125
},
124126
"required": ["name", "type", "data"],
125127
"additionalProperties": false
@@ -147,7 +149,8 @@
147149
},
148150
"required": ["lo", "hi"],
149151
"additionalProperties": false
150-
}
152+
},
153+
"constraint": { "type": "string", "enum": [ "gaussian", "poisson" ] }
151154
},
152155
"required": ["name", "type", "data"],
153156
"additionalProperties": false
@@ -167,7 +170,8 @@
167170
"properties": {
168171
"name": { "type": "string" },
169172
"type": { "const": "shapesys" },
170-
"data": { "type": "array", "items": {"type": "number"}, "minItems": 1 }
173+
"data": { "type": "array", "items": {"type": "number"}, "minItems": 1 },
174+
"constraint": { "type": "string", "enum": [ "gaussian", "poisson" ] }
171175
},
172176
"required": ["name", "type", "data"],
173177
"additionalProperties": false
@@ -177,7 +181,8 @@
177181
"properties": {
178182
"name": { "type": "string" },
179183
"type": { "const": "staterror" },
180-
"data": { "type": "array", "items": {"type": "number"}, "minItems": 1 }
184+
"data": { "type": "array", "items": {"type": "number"}, "minItems": 1 },
185+
"constraint": { "type": "string", "enum": [ "gaussian", "poisson" ] }
181186
},
182187
"required": ["name", "type", "data"],
183188
"additionalProperties": false

0 commit comments

Comments
 (0)