Remove InvalidNameReuse
exception in favor of in InvalidModel
#2395
Labels
InvalidNameReuse
exception in favor of in InvalidModel
#2395
In relation to Issue #2059, @lorenzennio was wanting to handle this via raising
InvalidNameReuse
though he and @kratsg pointed out that what is actually happening is maybe a better use ofInvalidModel
.InvalidNameReuse
was added in PR #209 though in the current uses ofInvalidNameReuse
pyhf/src/pyhf/parameters/utils.py
Lines 42 to 45 in 1191f66
@kratsg thinks this should just be covered by
InvalidModel
.If this actually is an invalid model then
InvalidNameReuse
can be removed everywhere in the code andInvalidModel
can be used instead.The text was updated successfully, but these errors were encountered: