Skip to content

Commit

Permalink
Merge pull request #1659 from NNPDF/fix_depricated_asscalar
Browse files Browse the repository at this point in the history
replace depricated np.asscalar with .item()
  • Loading branch information
scarrazza authored Jan 11, 2023
2 parents 0fcd7d5 + 98a497e commit dce7973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validphys2/src/validphys/paramfits/dataops.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def location(self):

@property
def scale(self):
return np.asscalar(np.diff(np.percentile(self.data, [15.87, 84.13])))/2
return (np.diff(np.percentile(self.data, [15.87, 84.13]))).item()/2


def get_parabola(asvals, chi2vals):
Expand Down

0 comments on commit dce7973

Please sign in to comment.