Skip to content

Commit

Permalink
Merge pull request #46 from rcjackson/numpy_fix
Browse files Browse the repository at this point in the history
FIX: Issue with new numpy causing a ValueError for the test.
  • Loading branch information
rcjackson authored Jun 19, 2023
2 parents 44ea85c + 8f33923 commit c4b0a1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pysp2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
from . import vis
from . import testing

__version__ = "1.3.1"
__version__ = "1.3.2"
2 changes: 1 addition & 1 deletion pysp2/util/peak_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def _fit_record_gaussian(my_ds, record_number):

try:
start = np.where((data - base) < 50)[0]
if start == []:
if not np.any(start):
start = np.nan
else:
start = start[start <= pos][-1]
Expand Down

0 comments on commit c4b0a1e

Please sign in to comment.