refactor: unnecessary keywords for call to numdifftools removed, test

against numerical differentiation made stricter.
This commit is contained in:
Fabian Joswig 2022-02-07 14:51:25 +00:00
parent a97d0c31a6
commit 6971e8cd9b
2 changed files with 2 additions and 9 deletions

View file

@ -1123,14 +1123,7 @@ def derived_observable(func, data, array_mode=False, **kwargs):
raise Exception('Multi mode currently not supported for numerical derivative')
options = {
'base_step': 0.1,
'step_ratio': 2.5,
'num_steps': None,
'step_nom': None,
'offset': None,
'num_extrap': None,
'use_exact_steps': None,
'check_num_steps': None,
'scale': None}
'step_ratio': 2.5}
for key in options.keys():
kwarg = kwargs.get(key)
if kwarg is not None: