Skip to content

Commit fd3ca0b

Browse files
committed
chore: adressing comments
1 parent 4a5e005 commit fd3ca0b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

LoopStructural/export/gocad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _write_structured_grid_gocad(grid, file_name):
8888
export_properties.append(
8989
{
9090
"index": index,
91-
"name": property_name,
91+
"name": safe_name,
9292
"data_path": data_path,
9393
**export_info,
9494
}

tests/unit/interpolator/test_2d_discrete_support.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from LoopStructural.interpolators import StructuredGrid2D
22
import numpy as np
3-
import pyvista as pv
3+
import pytest
44

55

66
## structured grid 2d tests
@@ -63,6 +63,10 @@ def test_get_element_outside2d():
6363

6464

6565
def test_structured_grid2d_vtk_assigns_quad_cell_types():
66+
try:
67+
import pyvista as pv
68+
except ImportError:
69+
pytest.skip("pyvista is required for vtk support")
6670
grid = StructuredGrid2D(origin=np.zeros(2), nsteps=np.array([4, 4]))
6771

6872
vtk_grid = grid.vtk(z=0.0)

0 commit comments

Comments
 (0)