#from Modules_manager.PCA_ import pca_maker

from Packages import *
st.set_page_config(page_title="NIRS Utils", page_icon=":goat:", layout="wide")
from Modules import *
from Class_Mod.DATA_HANDLING import *

# graphical delimiter
# st.write("---")

# load images for web interface
# img_sselect = Image.open("images\sselect.JPG")
# img_general = Image.open("images\general.JPG")
# img_predict = Image.open("images\predict.JPG")

# TOC menu on the left
# with st.sidebar:
#     st.markdown("[Sample Selection](#sample-selection)")
#     st.markdown("[Model Development](#create-a-model)")
#     st.markdown("[Predictions Making](#predict)")


# Page header
with st.container():
    st.subheader("Plateforme d'Analyses Chimiques pour l'Ecologie-PACE :goat:")
    st.title("NIRS Utils")
    st.write("Samples selection (PCA, [UMAP](https://umap-learn.readthedocs.io/en/latest/how_umap_works.html), ...), Predictive Modelling ([Pinard](https://github.com/GBeurier/pinard), [LWPLSR](https://doi.org/10.1002/cem.3209), ...), and Predictions using your data (CSV or DX files) and/or PACE NIRS Database.")
    #st.image(img_general)
    st.markdown("### We could add documentation here ###")
    header1, header2, header3 = st.columns(3)
    if header1.button("Samples Selection"):
        st.switch_page('pages\\1-samples_selection.py')
    if header2.button("Model Creation"):
        st.switch_page('pages\\2-model_creation.py')
    if header3.button("Predictions"):
        st.switch_page('pages\\3-prediction.py')