From 853703d48ccee43e7456abedb93c3e713e4c52cc Mon Sep 17 00:00:00 2001 From: rettigl Date: Sat, 23 Sep 2023 23:51:57 +0200 Subject: [PATCH] fix renaming bug --- sed/calibrator/momentum.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sed/calibrator/momentum.py b/sed/calibrator/momentum.py index 48ab5eb8..7fb585de 100644 --- a/sed/calibrator/momentum.py +++ b/sed/calibrator/momentum.py @@ -110,12 +110,8 @@ def __init__( self.x_column = self._config["dataframe"]["x_column"] self.y_column = self._config["dataframe"]["y_column"] - self.corrected_x_column = self._config["dataframe"][ - "corrected_x_column" - ] - self.corrected_y_column = self._config["dataframe"][ - "corrected_y_column" - ] + self.corrected_x_column = self._config["dataframe"]["corrected_x_column"] + self.corrected_y_column = self._config["dataframe"]["corrected_y_column"] self.kx_column = self._config["dataframe"]["kx_column"] self.ky_column = self._config["dataframe"]["ky_column"] @@ -735,7 +731,7 @@ def spline_warp_estimate( if verbose: print("Calulated thin spline correction based on the following landmarks:") print(f"pouter: {self.pouter}") - if include_center: + if use_center: print(f"pcent: {self.pcent}") return corrected_image