2018-09-19 23:49:15 +02:00
|
|
|
#!/bin/bash -xe
|
|
|
|
|
|
2020-02-13 00:47:36 +01:00
|
|
|
# By default use ~50 GiB for generate_grid.py, but allow override.
|
|
|
|
|
export DEFAULT_MAX_GRID_CPU=10
|
|
|
|
|
|
2020-02-18 18:00:34 +01:00
|
|
|
export BUILD_DIR=build_${XRAY_PART}
|
|
|
|
|
rm -rf ${BUILD_DIR}/output
|
|
|
|
|
mkdir -p ${BUILD_DIR}/output
|
2018-09-19 23:49:15 +02:00
|
|
|
python3 reduce_tile_types.py \
|
2020-02-18 18:00:34 +01:00
|
|
|
--root_dir ${BUILD_DIR}/specimen_001/ \
|
|
|
|
|
--output_dir ${BUILD_DIR}/output
|
2018-09-19 23:49:15 +02:00
|
|
|
python3 create_node_tree.py \
|
2020-02-18 18:00:34 +01:00
|
|
|
--dump_all_root_dir ${BUILD_DIR}/specimen_001/ \
|
|
|
|
|
--ordered_wires_root_dir ../072-ordered_wires/${BUILD_DIR}/specimen_001/ \
|
|
|
|
|
--output_dir ${BUILD_DIR}/output
|
|
|
|
|
python3 reduce_site_types.py --output_dir ${BUILD_DIR}/output
|
|
|
|
|
python3 generate_grid.py \
|
|
|
|
|
--root_dir ${BUILD_DIR}/specimen_001/ \
|
|
|
|
|
--output_dir ${BUILD_DIR}/output \
|
2020-02-13 00:47:36 +01:00
|
|
|
--ignored_wires ignored_wires/${XRAY_DATABASE}/${XRAY_PART}_ignored_wires.txt \
|
|
|
|
|
--max_cpu=${MAX_GRID_CPU:-${DEFAULT_MAX_GRID_CPU}}
|