Skip to content

Commit

Permalink
small fix in fill_negatives: wrong order for int window size
Browse files Browse the repository at this point in the history
  • Loading branch information
fzeiser committed Mar 19, 2020
1 parent c8c0046 commit 09b7f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ompy/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def fill_negative_gauss(array: np.ndarray, Eg: np.ndarray,
array with negative counts filled, where possible
"""
if isinstance(window_size, (int, float)):
sigma = window_size/2.355 # convert FWHM to sigma
window_size = np.full(array.shape[1], window_size)
sigma = window_size/2.355 # convert FWHM to sigma
else:
assert len(window_size) == array.shape[1], "Array length incompatible"
sigma = window_size/2.355 # convert FWHM to sigma
Expand Down

0 comments on commit 09b7f90

Please sign in to comment.