nens / threedigrid-builder

Generate a 3Di simulation grid from a model schematisation.
Other
1 stars 0 forks source link

IndexError: Out of bounds on buffer access (axis 0) #268

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: THREEDI-API-PRODUCTION-3MR

IndexError: Out of bounds on buffer access (axis 0)
(12 additional frame(s) were not displayed)
...
  File "threedigrid_builder/application.py", line 252, in make_gridadmin
    grid = _make_gridadmin(
  File "threedigrid_builder/application.py", line 74, in _make_gridadmin
    grid += Grid.from_quadtree(
  File "threedigrid_builder/grid/grid.py", line 321, in from_quadtree
    nodes, lines = quadtree.get_nodes_lines(
  File "threedigrid_builder/grid/quadtree.py", line 165, in get_nodes_lines
    set_2d_computational_nodes_lines(
  File "threedigrid_builder/grid/fwrapper/cells.pyx", line 44, in threedigrid_builder.grid.fwrapper.cells.set_2d_computational_nodes_lines
    nodk=&nodk[0],
caspervdw commented 1 year ago

The raster has to active pixels. The newest modelchecker actually crashes on that with:

RuntimeError: /home/casper/code/threedigrid-builder/var/GH268/rasters/dem.tif, band 1: Failed to compute min/max, no valid pixels found in sampling.

I think I'll fix that there and leave gridbuilder.