Skip to content

Added a test of GDAL opening a grid.asc file#11587

Open
micheles wants to merge 4 commits into
masterfrom
grid_asc
Open

Added a test of GDAL opening a grid.asc file#11587
micheles wants to merge 4 commits into
masterfrom
grid_asc

Conversation

@micheles

@micheles micheles commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The GDAL wheel provided by @vot4anto cannot open an ESRI .asc file: that breaks IPT in the Volcano example:

ERROR: openquakeplatform_ipt.test.examples_test.IptExamplesTest.ConfigurationFile_92_4_test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ubuntu/oq-platform-ipt/openquakeplatform_ipt/test/examples_test.py", line 476, in generated
    res = zip_diff(exp_filename, zipfile, True)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/oq-platform-ipt/openquakeplatform_ipt/test/examples_test.py", line 218, in zip_diff
    z2 = zipfile.ZipFile(open(filename2, "rb"))
                         ^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/gem-oq-moon-download/Volcano.zip'

My guess is a missing AAIGrid driver. Here I add a test, engine side, which actually gives a proper error message and not a confusing one.

@micheles micheles added this to the Engine 3.26.0 milestone Jul 2, 2026
@micheles micheles requested a review from vot4anto July 2, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants