From e17c01f71b7dde072c370ec870e032b29cc26624 Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Fri, 20 Oct 2023 19:56:37 +0200 Subject: [PATCH] Only save AI-version in fits header when AI interpolation method is selected --- graxpert/preferences.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graxpert/preferences.py b/graxpert/preferences.py index 46ca958..f5068a0 100644 --- a/graxpert/preferences.py +++ b/graxpert/preferences.py @@ -161,7 +161,9 @@ def app_state_2_fitsheader(app, app_state, fits_header): fits_header["INTP-OPT"] = prefs["interpol_type_option"] fits_header["SMOOTHING"] = prefs["smoothing_option"] fits_header["CORR-TYPE"] = prefs["corr_type"] - fits_header["AI-VER"] = prefs["ai_version"] + + if prefs["interpol_type_option"] == "AI": + fits_header["AI-VER"] = prefs["ai_version"] if prefs["interpol_type_option"] != "AI": fits_header["SAMPLE-SIZE"] = prefs["sample_size"]