File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed
Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /labscript_devices/SoftwareDevice/__init__.py #
4+ # #
5+ # Copyright 2019, Monash University and contributors #
6+ # #
7+ # This file is part of labscript_devices, in the labscript suite #
8+ # (see http://labscriptsuite.org), and is licensed under the #
9+ # Simplified BSD License. See the license.txt file in the root of #
10+ # the project for the full license. #
11+ # #
12+ #####################################################################
13+
114from labscript_utils import check_version
215
316import sys
Original file line number Diff line number Diff line change 77DummyPseudoclock ('pseudoclock' )
88SoftwareDevice ('software_device' )
99
10+
1011def foo (shot_context , t , arg ):
1112 print (f"hello, { arg } !" )
12- start ()
13+
1314
1415software_device .add_function ('start' , foo , 'world' )
1516
16- stop (2 )
17+ start ()
18+ stop (1 )
Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /labscript_devices/SoftwareDevice/utils.py #
4+ # #
5+ # Copyright 2019, Monash University and contributors #
6+ # #
7+ # This file is part of labscript_devices, in the labscript suite #
8+ # (see http://labscriptsuite.org), and is licensed under the #
9+ # Simplified BSD License. See the license.txt file in the root of #
10+ # the project for the full license. #
11+ # #
12+ #####################################################################
13+
114import inspect
215from types import FunctionType
316from labscript_utils import dedent
You can’t perform that action at this time.
0 commit comments