Skip to content

Commit

Permalink
simplifying code, removing spurious debugging print statements
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 63456d4 commit 4dd55a4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions augur/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ def f(self, x, labels, pars_fid, sys_fid):
x = np.array(x)
# If we normalize the sampling we need to undo the normalization
if self.norm_step:
print(x)
x = self.norm * x + self.par_bounds[:, 0]
print(x)
self.tools.reset()
self.lk.reset()

Expand Down Expand Up @@ -242,11 +240,9 @@ 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 None:
return self.derivatives
else:
if self.norm is not None:
self.derivatives /= self.norm[:, None]
return self.derivatives
return self.derivatives
else:
return self.derivatives

Expand Down

0 comments on commit 4dd55a4

Please sign in to comment.