-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: writexml handles missing parameter configs for normfactor (#1819)
* In situations in writexml where the normfactor parameter config is missing inits or bounds, fall back to using default values instead. * Add tests that use workspaces with no parameter inits and no parameter bounds to cover this behavior.
- Loading branch information
Showing
4 changed files
with
103 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"channels": [ | ||
{ | ||
"name": "ch", | ||
"samples": [ | ||
{ | ||
"data": [1000.0], | ||
"modifiers": [ | ||
{"data": null, "name": "mu_sig", "type": "normfactor"}, | ||
{ | ||
"data": {"hi": 1.5, "lo": 0.5}, | ||
"name": "unc", | ||
"type": "normsys" | ||
} | ||
], | ||
"name": "signal" | ||
} | ||
] | ||
} | ||
], | ||
"measurements": [ | ||
{ | ||
"config": { | ||
"parameters": [ | ||
{ | ||
"name": "mu_sig", | ||
"inits": [5] | ||
} | ||
], | ||
"poi": "mu_sig" | ||
}, | ||
"name": "meas" | ||
} | ||
], | ||
"observations": [{"data": [1000], "name": "ch"}], | ||
"version": "1.0.0" | ||
} |
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,37 @@ | ||
{ | ||
"channels": [ | ||
{ | ||
"name": "ch", | ||
"samples": [ | ||
{ | ||
"data": [1000.0], | ||
"modifiers": [ | ||
{"data": null, "name": "mu_sig", "type": "normfactor"}, | ||
{ | ||
"data": {"hi": 1.5, "lo": 0.5}, | ||
"name": "unc", | ||
"type": "normsys" | ||
} | ||
], | ||
"name": "signal" | ||
} | ||
] | ||
} | ||
], | ||
"measurements": [ | ||
{ | ||
"config": { | ||
"parameters": [ | ||
{ | ||
"name": "mu_sig", | ||
"bounds": [[-5, 5]] | ||
} | ||
], | ||
"poi": "mu_sig" | ||
}, | ||
"name": "meas" | ||
} | ||
], | ||
"observations": [{"data": [1000], "name": "ch"}], | ||
"version": "1.0.0" | ||
} |