Skip to content
Snippets Groups Projects
Commit e71ec9da authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

parameterize grid size

parent 7a845908
Branches
No related tags found
1 merge request!6Fully functional version that calculate layer with all stages
Pipeline #48157 passed
...@@ -80,7 +80,9 @@ DB_HOST=$2 ...@@ -80,7 +80,9 @@ DB_HOST=$2
DB_PORT=$3 DB_PORT=$3
DB_NAME=$4 DB_NAME=$4
DB_USER=$5 DB_USER=$5
CODE_INSEE=69275
GRID_SIZE=5
CODE_INSEE=69275 # Décine-Charpieu
DATA_REPO="https://forge.grandlyon.com/erasme/data-recalcul-calque.git" DATA_REPO="https://forge.grandlyon.com/erasme/data-recalcul-calque.git"
...@@ -156,20 +158,20 @@ check ...@@ -156,20 +158,20 @@ check
# python3 main.py initCommunes # python3 main.py initCommunes
# check # check
comment "Init Grid" comment "Init Grid $GRID_SIZE $CODE_INSEE"
python3 main.py initGrid 5 $CODE_INSEE python3 main.py initGrid $GRID_SIZE $CODE_INSEE
check check
comment "InitDatas" comment "InitDatas $CODE_INSEE"
python3 main.py initDatas $CODE_INSEE python3 main.py initDatas $CODE_INSEE
check check
stage "Launch Computations..." stage "Launch Computations..."
comment "Computing factors" comment "Computing factors $CODE_INSEE"
python3 main.py computeFactors $CODE_INSEE # Possibly Multiprocessing task, Should have a list of townships python3 main.py computeFactors $CODE_INSEE # Possibly Multiprocessing task, Should have a list of townships
check check
comment "Computing Indices" comment "Computing Indices $CODE_INSEE"
python3 main.py computeIndices $CODE_INSEE python3 main.py computeIndices $CODE_INSEE
check check
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment