Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Sanchez authored and Javier Sanchez committed Jan 29, 2024
1 parent 28f55d5 commit 667e490
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions augur/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def get_derivatives(self, force=False, method='5pt_stencil'):
if (self.derivatives is None) or (force):
if '5pt_stencil' in method:
self.derivatives = five_pt_stencil(lambda y: self.f(y, self.var_pars, self.pars_fid,
self.req_params),
self.req_params),
self.x, h=float(self.config['step']))
elif 'numdifftools' in method:
import numdifftools as nd
Expand All @@ -166,9 +166,9 @@ def get_derivatives(self, force=False, method='5pt_stencil'):
else:
ndkwargs = {}
self.derivatives = nd.Gradient(lambda y: self.f(y, self.var_pars, self.pars_fid,
self.req_params),
step=float(self.config['step']),
**ndkwargs)(self.x).T
self.req_params),
step=float(self.config['step']),
**ndkwargs)(self.x).T
else:
raise ValueError(f'Selected method: `{method}` is not available. \
Please select 5pt_stencil or numdifftools.')
Expand Down
8 changes: 4 additions & 4 deletions augur/tests/test_analyze.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from augur.analyze import Analyze


def test_analyze():
fish = Analyze('./examples/config_test.yml')
ders = fish.get_derivatives()
fishmat = fish.get_fisher_matrix()
b_vec = fish.compute_fisher_bias()

fish.get_derivatives()
fish.get_fisher_matrix()
fish.compute_fisher_bias()
2 changes: 1 addition & 1 deletion augur/tests/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_generate():
lk = generate('./examples/config_test.yml')
generate('./examples/config_test.yml')

0 comments on commit 667e490

Please sign in to comment.