Skip to content

Commit

Permalink
Deployment test 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiabernat committed Jan 11, 2025
1 parent dfe7e78 commit e282030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dash_app/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions dash_app/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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)
Expand Down

0 comments on commit e282030

Please sign in to comment.