Skip to content

Commit

Permalink
Deployment test 15.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiabernat committed Jan 12, 2025
1 parent b03dcc5 commit aacbc0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dash_app/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@

if CONNECT_TO_LAMBDA:

print("DEPLOYMENT 14")
print("DEPLOYMENT 15")

SERVE_LOCALLY = False
DATASET_ID = "1ffea-emt93" # MSD-LIVE added dataset id that goes to DEV
DATA_DIR = ""
LAMBDA_TASK_ROOT = os.getenv('LAMBDA_TASK_ROOT')

if LAMBDA_TASK_ROOT is None:
print(" ********** ", "LAMBDA_TASK_ROOT is None")
METADATA_DIR = './metadata'
SERVE_LOCALLY = True
else:
print("********** LAMBDA_TASK_ROOT is ", os.getenv('LAMBDA_TASK_ROOT'))
METADATA_DIR = os.path.join(LAMBDA_TASK_ROOT, "dash_app", "metadata")
SERVE_LOCALLY = False

else:
DATA_DIR = "../../data/msdlive-gridcerf"
METADATA_DIR = "./metadata"
LAMBDA_TASK_ROOT = ""
SERVE_LOCALLY = True

print("SERVE_LOCALLY is ", SERVE_LOCALLY)

COMPILED_DIR = os.path.join(DATA_DIR, "gridcerf/compiled/compiled_technology_layers")
OUTDIR = "tmp"
Expand Down

0 comments on commit aacbc0b

Please sign in to comment.