We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e63b97 commit f8c6f74Copy full SHA for f8c6f74
machinevisiontoolbox/blocks/__init__.py
@@ -1,3 +1,6 @@
1
-from .camera import *
+try:
2
+ from .camera import *
3
+except ImportError:
4
+ pass
5
6
url = "https://petercorke.github.io/machinevision-toolbox-python/" + __package__
machinevisiontoolbox/blocks/test_blocks.py
@@ -1,6 +1,11 @@
#!/usr/bin/env python3
-from bdsim.blocks.linalg import *
+ from bdsim.blocks.linalg import *
+
+ _bdsim = True
7
8
+ _bdsim = False
9
10
import unittest
11
import numpy.testing as nt
@@ -11,6 +16,7 @@
16
from machinevisiontoolbox.blocks import *
12
17
13
18
19
+@unittest.skipIf(not _bdsim, reason="bdsim is not installed")
14
20
class CameraBlockTest(unittest.TestCase):
15
21
def test_camera(self):
22
0 commit comments