Skip to content

Commit

Permalink
[functions] Exclude pseudo measurements in combine_measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Mar 18, 2019
1 parent 8bb8773 commit 44eb42d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flavio/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,11 @@ def combine_measurements(observable, include_measurements=None,
constraints = []
_n_multivariate = 0 # number of multivariate constraints
for name, m in flavio.Measurement.instances.items():
if include_measurements is not None and name not in include_measurements:
if name.split(' ')[0] == 'Pseudo-measurement':
continue
if obs not in m.all_parameters:
elif include_measurements is not None and name not in include_measurements:
continue
elif obs not in m.all_parameters:
continue
num, constraint = m._parameters[obs]
if not np.isscalar(constraint.central_value):
Expand Down

0 comments on commit 44eb42d

Please sign in to comment.