Skip to content
Snippets Groups Projects
Commit dbcc12fe authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed mol/numpy unit test to use project convention

parent 2869597f
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ set(OST_MOL_BASE_UNIT_TESTS
test_view.cc
test_view_op.cc
tests.cc
test_numpy.py
)
ost_unittest(MODULE mol SOURCES "${OST_MOL_BASE_UNIT_TESTS}")
......
import sys,unittest
sys.path.append("../../../../stage/lib/openstructure")
sys.path.append("../../../../stage/lib64/openstructure")
import unittest
from ost import *
import numpy
has_numpy=True
try:
import numpy
except ImportError:
has_numpy=False
def v2v(v):
return geom.Vec3(float(v[0]),float(v[1]),float(v[2]))
......@@ -15,6 +18,8 @@ class TestNumpy(unittest.TestCase):
pass
def test_(self):
if not has_numpy:
return
entity=mol.CreateEntity()
ed=entity.EditXCS()
ch=ed.InsertChain("X")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment