fatiando / harmonica

Forward modeling, inversion, and processing gravity and magnetic data
https://www.fatiando.org/harmonica
BSD 3-Clause "New" or "Revised" License
211 stars 69 forks source link

Fix prism_layer test when accessing PyVista cells #409

Closed santisoler closed 1 year ago

santisoler commented 1 year ago

Since the latest PyVista update, the UnstructuredGrid.cell attribute is a generator, and therefore it cannot be indexed. This broke our tests, that were indexing cells in the UnstructuredGrid for prism layers to compare them with the boundaries of each prism in the layer.