Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion OS_instructions/OS_flash.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ cp .bash_aliases /home/pi
The commands in the file can now be run from the terminal. At the time of writing (2022-12-09), the following commands are available:
- `lfm_run` - runs `oracle.py`
- `lfm_dev` - runs `dev_run.py`
- `send_address` - runs `email_utils.py` (attempts to send the ngrok address to `lfmscope@gmail.com`)
- `send_address` - runs `email_utils.py` (attempts to send the ngrok address to `lfmscope@gmail.com`)

### Setting a default location
- In `~/.bashrc` add the following environment variable at the bottom of the file: `DEFAULT_SITE='NAME_OF_SITE'`. Note: the specified site MUST already be listed in `ulc_mm_package/QtGUI/gui_constants.py`'s `SITE_LIST` constant.
9 changes: 8 additions & 1 deletion ulc_mm_package/QtGUI/gui_constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import enum

import os
from pathlib import Path

from ulc_mm_package.neural_nets.neural_network_constants import YOGO_CLASS_IDX_MAP
Expand Down Expand Up @@ -49,6 +49,13 @@ class ERROR_BEHAVIORS(enum.Enum):
"Goodlife Musanze",
]

# Reorder the site list to move the environment variable specified default site to the first location
env_var = os.getenv("DEFAULT_SITE")

if env_var in SITE_LIST:
SITE_LIST.insert(0, SITE_LIST.pop(SITE_LIST.index(env_var)))


CLINICAL_SAMPLE = "Whole blood (clinical, P. falciparum endemic)"
CULTURED_SAMPLE = "Lab cultured P. falciparum"
SAMPLE_LIST = [
Expand Down
Loading