Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
llegregam committed May 21, 2024
1 parent 5811214 commit 382a635
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions physiofit/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def _initialize_opt_menu(self):
self.io.get_models()
except Exception:
st.error(
f"An error has occurred when listing models from the models "
f"folder: \n{Path(__file__).parent / 'models'}. "
f"An error has occurred when listing models from the "
f"models folder: \n{Path(__file__).parent / 'models'}. "
f"Please correct the model or submit an issue at "
f"github.com/MetaSys-LISBP/PhysioFit/issues")
raise
Expand Down Expand Up @@ -448,12 +448,12 @@ def _initialize_opt_menu_widgets(self, file_extension):
with col2:
st.write("Parameter Value")
for key, value in self.model.args[
param].items():
param].items():
st.text_input(
label="label", # Unused
label_visibility="collapsed",
value=value if self.config_parser is
None else
None else
self.config_parser.model["args"][key],
key=f"Fixed_{param}_value_{key}"
)
Expand Down Expand Up @@ -551,7 +551,7 @@ def _get_data_from_session_state(self):
for key in self.model.args[param].keys():
try:
if st.session_state[
f"Fixed_{param}_value_{key}"] == "0":
f"Fixed_{param}_value_{key}"] == "0":
self.model.args[param][key] = 0
else:
self.model.args[param][key] = literal_eval(
Expand Down

0 comments on commit 382a635

Please sign in to comment.