Skip to content

Commit

Permalink
fixed bug when using normalized step
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Sanchez authored and Javier Sanchez committed Oct 31, 2024
1 parent a6d9a8a commit d380288
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions augur/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def get_derivatives(self, force=False, method='5pt_stencil', step=None):
else:
raise ValueError(f'Selected method: `{method}` is not available. \
Please select 5pt_stencil or numdifftools.')
if self.norm is not None:
self.derivatives /= self.norm[:, None]
return self.derivatives
else:
return self.derivatives
Expand Down

0 comments on commit d380288

Please sign in to comment.