-
Notifications
You must be signed in to change notification settings - Fork 0
/
dt-mobility-causal-intervention.sh
68 lines (54 loc) · 2.4 KB
/
dt-mobility-causal-intervention.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
DT_PATH=$(pwd)
PARAMETERS_PATH=parameters
SECRETS_PATH=secrets
DIGITAL_TWIN_NAME=dt-mobility-causal-intervention
EXECUTION_NAME=execution
mkdir -p ${DT_PATH}/${DIGITAL_TWIN_NAME}/${EXECUTION_NAME}
# Pulling all the components and versions
odtp new odtp-component-entry \
--name odtp-sql-dataloader \
--component-version v0.1.0 \
--repository https://github.com/odtp-org/odtp-sql-dataloader
odtp new odtp-component-entry \
--name odtp-postgis-dataloader \
--component-version v0.1.1 \
--repository https://github.com/odtp-org/odtp-postgis-dataloader
odtp new odtp-component-entry \
--name odtp-mobility-simulation \
--component-version v0.1.0 \
--repository https://github.com/odtp-org/odtp-mobility-simulation
odtp new odtp-component-entry \
--name odtp-mobility-metrics \
--component-version v0.0.2 \
--repository https://github.com/odtp-org/odtp-mobility-metrics
odtp new odtp-component-entry \
--name odtp-next-location-prediction \
--component-version v0.0.2 \
--repository https://github.com/odtp-org/odtp-next-location-prediction
odtp new odtp-component-entry \
--name odtp-pygwalker \
--component-version v0.1.3 \
--repository https://github.com/odtp-org/odtp-pygwalker
# Creating new digital twin
odtp new digital-twin-entry \
--user-email ${ODTP_USER_EMAIL} \
--name ${DIGITAL_TWIN_NAME}
# Creating new execution
odtp new execution-entry \
--name ${EXECUTION_NAME} \
--digital-twin-name ${DIGITAL_TWIN_NAME} \
--component-tags odtp-sql-dataloader:v0.1.0,odtp-postgis-dataloader:v0.1.1,odtp-mobility-simulation:v0.1.0,odtp-mobility-metrics:v0.0.2,odtp-next-location-prediction:v0.0.2,odtp-pygwalker:v0.1.3 \
--parameter-files ${PARAMETERS_PATH}/0_odtp-sql-dataloader,${PARAMETERS_PATH}/1_odtp-postgis-dataloader,${PARAMETERS_PATH}/2_odtp-mobility-simulation,${PARAMETERS_PATH}/3_odtp-mobility_metrics,${PARAMETERS_PATH}/4_odtp-next-location-prediction, \
--ports ,,,,,8555:8501
# Preparing execution
odtp execution prepare \
--execution-name ${EXECUTION_NAME} \
--project-path ${DT_PATH}/${DIGITAL_TWIN_NAME}/${EXECUTION_NAME}
# Running execution
odtp execution run \
--execution-name ${EXECUTION_NAME} \
--secrets-files ${SECRETS_PATH}/0_odtp-sql-dataloader,${SECRETS_PATH}/1_odtp-postgis-dataloader,,,, \
--project-path ${DT_PATH}/${DIGITAL_TWIN_NAME}/${EXECUTION_NAME} \
#odtp execution delete --execution-name execution --project-path ${DT_PATH}/${DIGITAL_TWIN_NAME}/${EXECUTION_NAME}