Skip to content

Commit

Permalink
Only save AI-version in fits header when AI interpolation method is s…
Browse files Browse the repository at this point in the history
…elected
  • Loading branch information
Steffenhir committed Oct 20, 2023
1 parent 11891c4 commit e17c01f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion graxpert/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit e17c01f

Please sign in to comment.