forked from labscript-suite/labscript-devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_device.py
34 lines (26 loc) · 914 Bytes
/
test_device.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from __future__ import division, unicode_literals, print_function, absolute_import
from labscript_utils import PY2
if PY2:
str = unicode
import sys
from labscript_devices import BLACS_tab, runviewer_parser
from labscript import Device, LabscriptError, set_passed_properties
class test_device(Device):
description = 'test device'
@set_passed_properties(
property_names = {
"connection_table_properties": ["name"],
"device_properties": ["DoSomething"]}
)
def __init__(self, name, DoSomething = False, **kwargs):
if DoSomething is not False:
raise LabscriptError('test_device does nothing, but kwarg DoSomething was not passed False')
Device.__init(self, name, None, None, **kwargs)
@BLACS_tab
class Tab(object):
pass
class Worker(object):
pass
@runviewer_parser
class Parser(object):
pass