-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I am unsure if this is a bug / feature / something else: as far as I can see, a ws.model(validate=False) call will trigger get_measurement()
Lines 428 to 431 in adddb07
| measurement = self.get_measurement( | |
| measurement_name=measurement_name, | |
| measurement_index=measurement_index, | |
| ) |
Line 394 in adddb07
| schema.validate(measurement, 'measurement.json', version=self.version) |
I noticed this while trying out pyhf on https://marimo.app/ with something like
import micropip
await micropip.install("pyhf")
import pyhf
spec = {
"channels": [
{
"name": "Signal_region",
"samples": [
{
"data": [140.0],
"modifiers": [
{
"data": {
"hi": 1.08,
"lo": 0.92
},
"name": "luminosity",
"type": "normsys"
}
],
"name": "Dummy"
}
]
}
],
"measurements": [
{
"config": {"parameters": [], "poi": ""},
"name": "Luminosity uncertainty example"
}
],
"observations": [
{
"data": [140.0],
"name": "Signal_region"
}
],
"version": "1.0.0"
}
ws = pyhf.Workspace(spec, validate=False)
model = ws.model(validate=False)which occasionally gives me jsonschema.exceptions.RefResolutionError (may be a glitch with the site and not necessarily a pyhf issue) and I expected I would be able to skip all validation with validate=False.
matthewfeickert
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working