pyhs3.exceptions.DuplicateEntityError¶
- exception pyhs3.exceptions.DuplicateEntityError[source]¶
Raised when two distinct entities share a single name in the dependency graph.
Distributions, functions, parameters, constants, and HistFactory modifiers all live in one shared name namespace when the computation graph is built. Two distinct entities with the same name (for example a function and a distribution both named
shared, or two distributions namedmodel) would silently shadow one another — only the last one built would survive, and references to that name would be wired to the wrong node. This error is raised instead so the collision surfaces loudly at model-construction time.A parameter declared in
parameter_pointsthat also appears as a graph parameter is the same logical entity and is not a collision.