Skip to content
Snippets Groups Projects
Commit 41f729a7 authored by Bruce Edelman's avatar Bruce Edelman
Browse files

fixed constraint checking logic

parent c11f406b
No related branches found
No related tags found
1 merge request!704Resolve #430 (Add normalisation flag to constrained prior)
......@@ -407,7 +407,7 @@ class PriorDict(dict):
outsample = self.conversion_function(sample)
# Check if there is a constraint in sample/outsample
if (np.any(isinstance([self[key] for key in sample.keys()], Constraint)) or
np.any(isinstance([self[key] for key in outsample.keys()]))):
np.any(isinstance([self[key] for key in outsample.keys()], Constraint))):
# If constraint exists in keys, caclulate the cached normalization constant
ratio = self.normalize_constraint_factor(sample.keys())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment