Skip to content

Commit

Permalink
BoxCoxShift: (bugfix) use correct data range for lmbda<0
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Mar 13, 2021
1 parent 92600ab commit bf37471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gstools/normalizer/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def denormalize_range(self):
if np.isclose(self.lmbda, 0):
return (-np.inf, np.inf)
if self.lmbda < 0:
return (-np.inf, np.divide(1, self.lmbda))
return (-np.inf, -np.divide(1, self.lmbda))
return (-np.divide(1, self.lmbda), np.inf)

def _denormalize(self, data):
Expand Down

0 comments on commit bf37471

Please sign in to comment.