diff --git a/dfmdash/streamlit/Dynamic_Factor_Model.py b/dfmdash/streamlit/Dynamic_Factor_Model.py index f3a0467..f41ffc3 100644 --- a/dfmdash/streamlit/Dynamic_Factor_Model.py +++ b/dfmdash/streamlit/Dynamic_Factor_Model.py @@ -47,7 +47,7 @@ def file_uploader(self) -> "DataHandler": st.warning("Please provide input file or check box in sidebar to see Covid-19 Example") st.stop() if load_covid_example: - self.df = pd.read_csv(Path(__file__).parent / "../data/processed/test_input_2state.csv", index_col=0) + self.df = pd.read_csv(Path(__file__).parent / "../../data/processed/test_input_2state.csv", index_col=0) else: self.df = self.load_data(file) c1, _, c2 = st.columns([0.25, 0.05, 0.7]) diff --git a/dfmdash/streamlit/pages/1_Factor_Analysis.py b/dfmdash/streamlit/pages/1_Factor_Analysis.py index 5a4fb2e..252aadc 100644 --- a/dfmdash/streamlit/pages/1_Factor_Analysis.py +++ b/dfmdash/streamlit/pages/1_Factor_Analysis.py @@ -10,7 +10,7 @@ pio.templates.default = "plotly_white" FILE = Path(__file__) -EX_PATH = FILE.parent / "../../data/example-data/pandemic-only" +EX_PATH = FILE.parent / "../../../data/example-data/pandemic-only" def center_title(text): diff --git a/dfmdash/streamlit/pages/2_Comparative_Run_Analysis.py b/dfmdash/streamlit/pages/2_Comparative_Run_Analysis.py index 82932e4..9ec2452 100644 --- a/dfmdash/streamlit/pages/2_Comparative_Run_Analysis.py +++ b/dfmdash/streamlit/pages/2_Comparative_Run_Analysis.py @@ -24,7 +24,7 @@ def center_title(text): # Parameter to runs FILE_PATH = Path(__file__).parent -EXAMPLE_RESULT_DIR = FILE_PATH / "../../data/example-data" +EXAMPLE_RESULT_DIR = FILE_PATH / "../../../data/example-data" run_dir = Path(st.text_input("Path directory of runs", value=EXAMPLE_RESULT_DIR)) df = parse_multiple_runs(run_dir).sort_values("Run") diff --git a/dfmdash/streamlit/pages/4_Synthetic_Control_Model.py b/dfmdash/streamlit/pages/4_Synthetic_Control_Model.py index ba5cbe1..adb14fe 100644 --- a/dfmdash/streamlit/pages/4_Synthetic_Control_Model.py +++ b/dfmdash/streamlit/pages/4_Synthetic_Control_Model.py @@ -1,24 +1,16 @@ from pathlib import Path -import matplotlib.pyplot as plt -import seaborn as sns -import plotly.express as px -import anndata as ann import numpy as np import pandas as pd import plotly.graph_objects as go import plotly.io as pio import streamlit as st -from SyntheticControlMethods import DiffSynth, Synth -from datetime import datetime - -from dfmdash.constants import FACTORS_GROUPED -from dfmdash.covid19 import get_df, get_project_h5ad +from SyntheticControlMethods import Synth st.set_page_config(layout="wide") pio.templates.default = "plotly_dark" -EX_PATH = Path("./dfmdash/data/example-data/pandemic-only") +EX_PATH = Path(__file__).parent / "../../../data/example-data/pandemic-only" def center_title(text):