From 747b008d5eb4e5766a26256690df78ccc5a3b6fb Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Mon, 15 Feb 2021 15:26:06 +0100 Subject: [PATCH] Add initial selection on gauss component --- pyzebra/app/panel_ccl_integrate.py | 1 + pyzebra/app/panel_param_study.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyzebra/app/panel_ccl_integrate.py b/pyzebra/app/panel_ccl_integrate.py index b72d72e..7cbc243 100644 --- a/pyzebra/app/panel_ccl_integrate.py +++ b/pyzebra/app/panel_ccl_integrate.py @@ -470,6 +470,7 @@ def create(): # start with `background` and `gauss` fit functions added fitparams_add_dropdown_callback(types.SimpleNamespace(item="background")) fitparams_add_dropdown_callback(types.SimpleNamespace(item="gauss")) + fitparams_select.value = ["1"] # add selection to gauss fit_output_textinput = TextAreaInput(title="Fit results:", width=450, height=200) diff --git a/pyzebra/app/panel_param_study.py b/pyzebra/app/panel_param_study.py index e08ebb9..bed3f13 100644 --- a/pyzebra/app/panel_param_study.py +++ b/pyzebra/app/panel_param_study.py @@ -551,6 +551,7 @@ def create(): # start with `background` and `gauss` fit functions added fitparams_add_dropdown_callback(types.SimpleNamespace(item="background")) fitparams_add_dropdown_callback(types.SimpleNamespace(item="gauss")) + fitparams_select.value = ["1"] # add selection to gauss fit_output_textinput = TextAreaInput(title="Fit results:", width=450, height=200)