Streamlit app providing an interactive interface to the marble sorter.
git clone git@github.com:saeyslab/marble-sorter-ui.git
cd marble-sorter-ui
conda env create -f environment.yml
conda activate sorter
pip install .
Add your user to the dialout
group:
sudo usermod -aG dialout [USER]
where you replace [USER]
with your username.
You need to log out and back in for the changes to take effect.
If logging out and back in doesn't work, you might have to reboot.
On some distributions, specific library called brltty
might interfere with the serial connection.
This is a library for refreshable braille displays.
Assuming you don't need this, uninstall it:
sudo apt remove brltty
- Run
dmesg -wH
to view kernel messages. - Plug in the sorter.
- Check which device is used (should be something like
ttyUSB0
) - Fill in this device in
sorter_config.yml
Connect the sorter and fill in the serial port in sorter_config.yml
To start the app, run:
conda activate sorter
streamlit run src/marble_sorter_ui/Welcome.py
Be aware that any time when starting or stopping the streamlit connection, the sorter will flush out all marbles! If you have multiple screens open, the serial port will give an access denied error. Make sure to close everything and try again.