Skip to content

Commit

Permalink
change to len(...)-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kratsg committed Oct 21, 2018
1 parent 0fdfcc3 commit 841dd00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyhf/modifiers/shapesys.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self,shapesys_mods,pdfconfig,mega_mods):
zero_mask = summed_mask == 0
# then apply the mask
summed_mask[positive_mask] = inds
summed_mask[zero_mask] = 0
summed_mask[zero_mask] = len(self._parindices) - 1
access_rows.append(summed_mask.tolist())
self._factor_access_indices = default_backend.tolist(default_backend.stack(access_rows))
self.finalize(pdfconfig)
Expand Down
2 changes: 1 addition & 1 deletion pyhf/modifiers/staterror.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self,staterr_mods,pdfconfig,mega_mods):
zero_mask = summed_mask == 0
# then apply the mask
summed_mask[positive_mask] = inds
summed_mask[zero_mask] = 0
summed_mask[zero_mask] = len(self._parindices) - 1
access_rows.append(summed_mask.tolist())
self._factor_access_indices = default_backend.tolist(default_backend.stack(access_rows))
self.finalize(pdfconfig)
Expand Down

0 comments on commit 841dd00

Please sign in to comment.