Open emanuelegissi opened 1 year ago
good catch, not sure when that occurred. Let me know once you have added the updated file layers and I can update the figures repo with the passing cases.
Hi Jonathan, I uploaded an attempt at the new golden_gate_local test. The goal is being as similar as possible to the official FDS wildfire cases.
Here are the main mods, in no particular order:
test_
from the directory nameQGIS
, FDS
and scripts
:
QGIS
you find the sheets
, layers
folders and the qgs
file.FDS
you find only the case and nothing else except a .gitignore
. This folder should always be cleaned in advance by the script when a test is performed, to prevent artifacts.scripts
there are several test scripts. The scripts should be self-sufficient: they clean the FDS
folder, run QGIS, run FDS, call the image comparison script, and report back to the calling run.sh
.Regarding the overall structure of the verification
folder, the goal is avoiding any incidental pollution of the structure when the verification is run:
run.sh
should be the main entry point to the verification suite. This script should enter into the test folder hierarchy, browse the directories, run all the script in the scripts
subfolders, collect the test results, write a logfile (eg. 20230821-0920.log
) and the error images in a folder (named eg. 20230821-0920
) in the logs
folder. The script run.sh
should know nothing about the tests: just run the scripts and collect the results. Modularity is future-proof. scripts
folder. I prefer to have them in python that in bash, for preventing future headaches.chimney_tops
) should not be copied from the cad repo, but called. This to prevent divergences./tmp
directory, to prevent leftovers in case of errors.Speaking about git actions, the exact same run.sh
should be run. The goal is avoiding maintaining two different testing facilities.
And I still think that a separate repo for the verification cases is better, if possible.
Before starting any work on this, I suggest reaching a consensus, so that we head in the same direction. In the meantime, I keep cleaning qgis2fds code, and testing it by hand.
Let me know what you think on this.
Forgot to add:
$CHID.ini
and $CHID.ssf
files too. The goal is fully separating the test from the FDS
folder. Some progress on this made in https://github.com/firetools/qgis2fds/pull/89. Implemented changes:
There is still an open issue on this:
Someone "burned" the local landuse layer. It took me hours to understand that the fire_layer algorithm was working correctly, but the landuse was tainted. Please @Jonathan, do not touch them. I am going to replace the broken files with good ones.