diff --git a/python/NgOCC.py b/python/NgOCC.py index da228cdd..ebc7fd51 100644 --- a/python/NgOCC.py +++ b/python/NgOCC.py @@ -2,6 +2,6 @@ import logging logger = logging.getLogger(__name__) -logger.warn("This module is deprecated and just a wrapper for netgen.occ, import netgen.occ instead") +logger.warning("This module is deprecated and just a wrapper for netgen.occ, import netgen.occ instead") from .occ import * diff --git a/tests/pytest/test_pickling.py b/tests/pytest/test_pickling.py index 13e20f9e..e6059532 100644 --- a/tests/pytest/test_pickling.py +++ b/tests/pytest/test_pickling.py @@ -48,11 +48,11 @@ def test_pickle_stl(): def test_pickle_occ(): try: - import netgen.NgOCC as occ + import netgen.occ as occ except: import pytest pytest.skip("can't import occ") - geo = occ.LoadOCCGeometry("../../tutorials/frame.step") + geo = OCCGeometry("../../tutorials/frame.step") geo_dump = pickle.dumps(geo) geo2 = pickle.loads(geo_dump) vd1 = geo._visualizationData() diff --git a/tests/pytest/test_savemesh.py b/tests/pytest/test_savemesh.py index 6b7b7e2c..77ccd198 100644 --- a/tests/pytest/test_savemesh.py +++ b/tests/pytest/test_savemesh.py @@ -28,7 +28,7 @@ def CreateGeo(): def test_BBNDsave(): mesh = CreateGeo().GenerateMesh(maxh=0.4,perfstepsend = meshing.MeshingStep.MESHSURFACE) for i in range(2): - mesh.GenerateVolumeMesh(mp = MeshingParameters(only3D_domain=i+1,maxh=0.4)) + mesh.GenerateVolumeMesh(only3D_domain=i+1,maxh=0.4) mesh.SetGeometry(None) mesh.Save("test.vol") mesh2 = meshing.Mesh()