File size: 577 Bytes
1e63386
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d70d84b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# utils.py
from pathlib import Path
from enum import Enum, auto

# Base path for studies and trials.
# Streamlit apps are typically run from their root directory.
# If your app.py is in 'src/', and 'data/' is at the same level as 'src/',
# then Path("./data") from app.py's perspective would be Path("../data").
# For simplicity, assuming data is relative to where streamlit run is executed,
# or you adjust this path accordingly.
DATA_ROOT_PATH = Path("./data").resolve()


class AppMode(Enum):
    VIEWING = auto()
    # Potentially other modes like COMPARISON, EDITING etc.