mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
fix tests
This commit is contained in:
parent
67189f15f9
commit
da82b72df6
@ -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 *
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user