Patch¶
-
class
pyhf.patchset.
Patch
(spec)[source]¶ Bases:
jsonpatch.JsonPatch
A way to store a patch definition as part of a patchset (
PatchSet
).It contains
metadata
about the Patch itself:In addition to the above metadata, the Patch object behaves like the underlying
jsonpatch.JsonPatch
.Attributes
-
metadata
¶ The metadata of the patch
-
name
¶ The name of the patch
-
operations
= mappingproxy({'remove': <class 'jsonpatch.RemoveOperation'>, 'add': <class 'jsonpatch.AddOperation'>, 'replace': <class 'jsonpatch.ReplaceOperation'>, 'move': <class 'jsonpatch.MoveOperation'>, 'test': <class 'jsonpatch.TestOperation'>, 'copy': <class 'jsonpatch.CopyOperation'>})¶
-
values
¶ The values of the associated labels for the patch
Methods
-