Generate impact reports in PDF and PNG formats - #11523
Open
ptormene wants to merge 297 commits into
Open
Conversation
…(forgot to add the new file)
…e the available versions
…the threshold but that country has no loss at all (do not generate the corresponding report)
…xporting to csv and reading from the exported file
… readable from it
…emap to avoid redundancy
…ded by the risk team with different column names
…use them directly in the pdf
…ect of the impact report to make
…ponding label to the legends
…nt; refine the styling of some markers and labels
… as countries_info_file
…ently presents mean values
…'Show impact table' -> 'Show full impact table'
… summary impact table' -> 'Show impact summary table'
…g 'Exposed value' and not displaying the last column with nans
…values on the right
…ting the '*' in every metric
…rap modal backdrop timeouts
…al intercepting pointer events on a click (it should prevent race conditions in UI tests)" This reverts commit 34953b8.
…dal intercepting pointer events on a click (it should prevent race conditions in UI tests)" This reverts commit eb566aa.
…t Bootstrap modal backdrop timeouts" This reverts commit 051b50d.
… depends from the impact approach used in the job
…the jobs, for debugging purposes
…e' button in UI tests (should prevent race conditions
…r the random name of the temporary internal copy of the rupture file
… outputs (grouping all outputs together instead)
…roach using the finite-fault model from the USGS
…ete before subsequent interactions (like clicking download buttons or remove actions)
…guity among possible multiple matches
…sing rupture model
… damage' -> 'Affected population'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This branch has been there for months and it's time to finalize it.
Now we are busy with other urgent tasks, but I am opening this PR as a draft, so we can start reviewing the code.
The new feature require some additional python packages and I decided to create a separate requirements file specific for impact (and I did the same for aelo).
I finally managed to fix also the UI tests:
https://github.com/gem/oq-engine/actions/runs/32850716659
They had a very strange behavior, working smoothly in headed mode (showing the process in a browser window) but failing in headless mode.
We should double-check that all the files we are using to generate the reports are updated and "usable" (in terms of licenses, etc.).