From 389d2f1f78c4c5aaf38486f390ce405ac67c34d8 Mon Sep 17 00:00:00 2001 From: "Sergey E. Koposov" Date: Mon, 22 Jul 2024 19:14:57 +0100 Subject: [PATCH] rename variables --- py/rvspecfit/spec_inter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/py/rvspecfit/spec_inter.py b/py/rvspecfit/spec_inter.py index dacb498..9d4c9bc 100644 --- a/py/rvspecfit/spec_inter.py +++ b/py/rvspecfit/spec_inter.py @@ -335,12 +335,11 @@ def getInterpolator(HR, config, warmup_cache=False): elif interp_type == 'generic': mod_name = fd['module'] class_name = fd['class_name'] - outside_class = fd['outside_class_name'] + outside_class_name = fd['outside_class_name'] mod = importlib.import_module(mod_name) fd['template_lib'] = config['template_lib'] interper = getattr(mod, class_name)(fd) - extraper = getattr(mod, outside_class)(fd) - # NOT FINISHED implementation of a generic interpolation function + extraper = getattr(mod, outside_class_name)(fd) else: raise RuntimeError('Unrecognized interpolation file')