Skip to content

Commit

Permalink
pragma no cover a corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Mar 2, 2024
1 parent 7c39546 commit 1484e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qp/metrics/concrete_metric_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def compute_from_digest(self, digest):
eval_grid = self._eval_grid
total_samples = int(digest.weight)
n_pit = np.min([total_samples, len(eval_grid)])
if n_pit < len(eval_grid):
if n_pit < len(eval_grid): # pragma: no cover
#! TODO: Determine what the appropriate style of logging is going to be for metrics.
print(
"Number of pit samples is smaller than the evaluation grid size. "
Expand Down

0 comments on commit 1484e8f

Please sign in to comment.