Skip to content

Commit 055419d

Browse files
committed
Fix kwargs initialization in drawer_contours_2d and add pytest import in test_installation
1 parent 4bf754b commit 055419d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

gempy_viewer/modules/plot_2d/drawer_contours_2d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def plot_regular_grid_contacts(gempy_model: GeoModel, ax: matplotlib.axes.Axes,
1212
# contour_idx = list(self.model._faults.df[self.model._faults.df['isFault'] == True].index)
1313
# else:
1414
# contour_idx = list(self.model._surfaces.df.index)
15+
if kwargs is None:
16+
kwargs = {}
1517

1618
zorder = kwargs.get('zorder', 100)
1719

tests/test_installation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import pytest
2+
3+
4+
@pytest.mark.skipif("Run explicitly to test installation")
15
def test_pyvista():
26
import pyvista
37

0 commit comments

Comments
 (0)