-
Notifications
You must be signed in to change notification settings - Fork 7
TODO
Anthony Fok edited this page Apr 2, 2024
·
4 revisions
For simplifying and speeding up fetch_psra_csv_from_model() and fetch_psra_csv_from_national_model() in python/add_data.sh. (2024-03-30, 2024-03-31)
To be improved and added to (probably) .github/workflows/generate_assets.yml in OpenDRR/seismic-risk-model. For Anthony, run in ~/NRCan/OpenDRR/seismic-risk-model:
mkdir tmp
cd tmp
for i in cHazard_beta eDamage ebRisk; do
cp -al ../${i} .
mv $i/output/* $i/
rmdir $i/output
7zz a -mx9 -mmt=off "${i}_ProvTerr.7z" ${i}/??/*.csv
done
7zz a -mx9 -mmt=off ebRisk_Canada.7z ebRisk/Canada/*.csv
# Upload as release assets (if doing so manually in shell)
gh release upload v1.1.0 {cHazard_beta,eDamage,ebRisk}_ProvTerr.7z ebRisk_Canada.7z
To change:
- Replace hardcoded
tmp
directory with the use ofmktemp
- Let python/add_data.sh handle the renaming of
cHazard_beta
tocHazard
- etc.?
Wikis: data | model-factory | opendrr-api | opendrr | python-env | riskprofiler-cms