fixed asc_file.stem issue
Browse files
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)
|