diff --git a/dash_app/definitions.py b/dash_app/definitions.py index 47351c5..80f5020 100644 --- a/dash_app/definitions.py +++ b/dash_app/definitions.py @@ -19,12 +19,12 @@ DATASET_ID = "1ffea-emt93" # MSD-LIVE added dataset id that goes to DEV DATA_DIR = "" LAMBDA_TASK_ROOT = os.getenv('LAMBDA_TASK_ROOT') - print("********** ", os.getenv('LAMBDA_TASK_ROOT')) if LAMBDA_TASK_ROOT is None: print(" ********** ", "LAMBDA_TASK_ROOT is None") METADATA_DIR = './metadata' else: + print("********** ", os.getenv('LAMBDA_TASK_ROOT')) METADATA_DIR = os.path.join(LAMBDA_TASK_ROOT, "dash_app", "metadata") else: diff --git a/dash_app/layout.py b/dash_app/layout.py index 0977901..77703f1 100644 --- a/dash_app/layout.py +++ b/dash_app/layout.py @@ -29,7 +29,7 @@ # SOURCED SCRIPTS from src.utilities import recur_dictify -from definitions import CONNECT_TO_LAMBDA, REQUESETS_PATHNAME_PREFIX, METADATA_DIR, OUTDIR +from definitions import LAMBDA_TASK_ROOT, CONNECT_TO_LAMBDA, REQUESETS_PATHNAME_PREFIX, METADATA_DIR, OUTDIR # PATHS tech_pathways_df = pd.read_csv(os.path.join(METADATA_DIR, "msdlive_tech_paths.csv")) @@ -43,8 +43,6 @@ tech_pathways_dict = recur_dictify(df=tech_pathways_df[pathway]) all_options = tech_pathways_dict ## sourced -print(os.path.join(METADATA_DIR, "msdlive_tech_paths.csv")) -print(os.path.join(METADATA_DIR, "layer_catalogue.csv")) layer_catalogue = pd.read_csv(os.path.join(METADATA_DIR, "layer_catalogue.csv")) layer_catalogue.rename(columns={'filename': 'label', 'filepath': 'value'}, inplace=True)