gem / oq-engine

OpenQuake's Engine for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
373 stars 272 forks source link

ARISTOTLE: fix handling temporary uploaded files #9809

Closed ptormene closed 1 week ago

ptormene commented 1 week ago

The trick we were using to avoid deleting the temporary uploaded file too early was not reliable in 100% of cases, so I changed the approach, copying the file to the temporary directory before running the calculation.

I've also added test data for aristotle tests, to make it easier to run tests locally. I opened a companion PR also on mosaic side (https://gitlab.openquake.org/hazard/mosaic/mosaic/-/merge_requests/68), with an additional test using station data.