hugpv commited on
Commit
274907f
1 Parent(s): 8e5930e

fixed asc_file.stem issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -257,7 +257,7 @@ def process_trial_choice(trial_id, algo_choice):
257
  if "dffix" in trial:
258
  dffix = trial["dffix"]
259
  else:
260
- asc_file = st.session_state["asc_file"]
261
  trial["plot_file"] = str(PLOTS_FOLDER.joinpath(f"{asc_file.stem}_{trial_id}_2ndInput_chars_channel_sep.png"))
262
  trial["fname"] = str(asc_file.name).split(".")[0]
263
  df, dffix, trial = ut.trial_to_dfs(trial, st.session_state["lines"], use_synctime=True)
 
257
  if "dffix" in trial:
258
  dffix = trial["dffix"]
259
  else:
260
+ asc_file = pl.Path(st.session_state["asc_file"].name)
261
  trial["plot_file"] = str(PLOTS_FOLDER.joinpath(f"{asc_file.stem}_{trial_id}_2ndInput_chars_channel_sep.png"))
262
  trial["fname"] = str(asc_file.name).split(".")[0]
263
  df, dffix, trial = ut.trial_to_dfs(trial, st.session_state["lines"], use_synctime=True)