Skip to content

fix(ui): replace hardcoded local path in niivue_test.py with st.text_input#19

Open
laurapiro17 wants to merge 3 commits intonipoppy:mainfrom
laurapiro17:fix/niivue-test-hardcoded-path
Open

fix(ui): replace hardcoded local path in niivue_test.py with st.text_input#19
laurapiro17 wants to merge 3 commits intonipoppy:mainfrom
laurapiro17:fix/niivue-test-hardcoded-path

Conversation

@laurapiro17
Copy link
Copy Markdown
Contributor

niivue_test.py had a hardcoded /home/nikhil/... path on line 36, making it crash immediately on any other machine. replaced with a st.text_input so users can specify the filepath without touching the source. also added a guard so the viewer only runs when a path is actually provided (avoids FileNotFoundError on empty input).

…coded values

participant_id was hardcoded to 'sub-ED01' and session_id to 'ses-01',
ignoring the --participant_list and --session_list arguments entirely.
also removes duplicate 'import streamlit as st' on line 11.
…input

the file had a hardcoded /home/nikhil/... path that made it unusable
on any other machine. replaced with a text_input so users can specify
the filepath without editing the source. also guards the viewer call
so it only runs when a path is actually provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant