Skip to content

refactor: Refactor geos-mesh test and test meshes#237

Open
RomainBaville wants to merge 22 commits intomainfrom
RomainBaville/Refactor/RefactorGeosMeshTests
Open

refactor: Refactor geos-mesh test and test meshes#237
RomainBaville wants to merge 22 commits intomainfrom
RomainBaville/Refactor/RefactorGeosMeshTests

Conversation

@RomainBaville
Copy link
Contributor

@RomainBaville RomainBaville commented Feb 26, 2026

This PR aims to refactor the tests of geos-mesh to:

  • Use meshes from a GEOS simulation for most of the tests
  • Have small inline meshes for the other case

As the meshes from the GEOS simulation are the same than thos used in geos-proceesing and geos-processing is depending of geos-mesh, all the meshes are moved in geos-mesh

This PR close #238

@RomainBaville RomainBaville self-assigned this Feb 26, 2026
@RomainBaville RomainBaville added flag: ready for review type: cleanup test-geos-integration Triggers the testing of geosPythonPackages import and integration in GEOS CI type: refactor labels Feb 26, 2026
Comment on lines 306 to 309
globalIds: vtkDataArray = data.GetGlobalIds() if data.GetGlobalIds() is not None else data.GetArray(
"localToGlobalMap" )
if globalIds is None:
raise AttributeError( "There is no GlobalIds in the given fieldData." )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error might be captured by the VTKError to prevent this test with "is None"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not a vtkError, If the mesh has no globalIds, the function getGlobalIds will return a None object not an error. I have nonetheless update the error managment to be mor informative

RomainBaville and others added 3 commits March 6, 2026 14:36
Co-authored-by: paloma-martinez <104762252+paloma-martinez@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flag: ready for review test-geos-integration Triggers the testing of geosPythonPackages import and integration in GEOS CI type: cleanup type: refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor geos-mesh tests to use meshes from a GEOS simulation

2 participants