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 b8e7923 commit a78ed95Copy full SHA for a78ed95
labscript_devices/SpinnakerCamera/blacs_workers.py
@@ -18,7 +18,6 @@
18
import numpy as np
19
from labscript_utils import dedent
20
from enum import IntEnum
21
-import PySpin
22
from time import sleep, perf_counter
23
24
from labscript_devices.IMAQdxCamera.blacs_workers import IMAQdxCameraWorker
@@ -28,6 +27,9 @@ def __init__(self, serial_number):
28
27
"""Initialize Spinnaker API camera.
29
30
Serial number should be of string(?) type."""
+ global PySpin
31
+ import PySpin
32
+
33
self.system = PySpin.System.GetInstance()
34
35
ver = self.system.GetLibraryVersion()
0 commit comments