Skip to content

Commit

Permalink
Check if project data is in fits header before loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffenhir committed Sep 30, 2022
1 parent 4a94e21 commit 657e723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def fitsheader_2_app_state(app, app_state, fits_header):
if "BG-PTS" in fits_header.keys():
app_state["background_points"] = [np.array(p) for p in json.loads(fits_header["BG-PTS"])]

if "BG-EXTR" in fits_header.keys():
if "INTP-OPT" in fits_header.keys():
app.interpol_type.set(fits_header["INTP-OPT"])
app.smoothing_slider.set(fits_header["SMOOTHING"])
app.help_panel.sample_size_slider.set(fits_header["SAMPLE-SIZE"])
Expand Down

0 comments on commit 657e723

Please sign in to comment.