Isaiahensley / Aquatic-RIG

Our Senior Capstone project focuses on developing a Streamlit website dedicated to the visualization of aquatic NetCDF datasets. Aquatic data is inherently complex, being both spatiotemporal—capturing information over different times and space. Our website will let users alternate through time and depth to give comprehensive visuals for their data.
https://aquaticrig-develop.streamlit.app/
0 stars 1 forks source link

Change title of Dataset Management Page #103

Closed Isaiahensley closed 5 months ago

Isaiahensley commented 5 months ago

Description:

Currently the name of this page is "Dataset Management Page". However, this is not an accurate title for this pages functionality. The purpose of this issue is to brainstorm ideas so we can give it a better name. "Dataset Management Page" was a placeholder name we gave the page at the beginning of the semester.


Expected Outcome:

After coming up with a better name I will go through and change it on the website along with all references to that name in our code.

Isaiahensley commented 5 months ago

Description:

Changed all references to the Dataset Management page to Dataset Visualization.


Code Snippets:

aquaticrig_gui.py

import streamlit as st
from home_page import home_page
from about_page import about_page
from feedback_page import feedback_page
from datasetvisualization_page import dataset_visualization_page

class MultiApp:
    def __init__(self):
        self.apps = []

    def add_app(self, title, func):
        self.apps.append(title)  # Store only the title

    def run(self):
        st.set_page_config(page_title="AquaticRig", layout="wide")

        st.sidebar.markdown("## Main Menu")
        selected_app = st.sidebar.selectbox(
            "Select Page", self.apps
        )
        st.sidebar.markdown("---")

        if selected_app == "Home":
            home_page()
        elif selected_app == "Dataset Visualization":
            dataset_visualization_page()
        elif selected_app == "About":
            about_page()
        elif selected_app == "Feedback":
            feedback_page()

if __name__ == "__main__":
    app = MultiApp()

    app.add_app("Home", home_page)
    app.add_app("Dataset Visualization", dataset_visualization_page)
    app.add_app("About", about_page)
    app.add_app("Feedback", feedback_page)

    app.run()

datasetvisualization_page.py

def dataset_visualization_page():
    ...
spaude11 commented 5 months ago

I will close this issue.