File tree Expand file tree Collapse file tree 10 files changed +141
-2
lines changed Expand file tree Collapse file tree 10 files changed +141
-2
lines changed Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /base.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
14+ """The labscript base class for all I/O/Device classes"""
15+
116import builtins
217import keyword
318
Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /compiler.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
14+ """The labscript compiler interface. This is only relevant to developers and those
15+ interested in the labscript interface to runmanager."""
16+
117import builtins
218
319from labscript_utils .labconfig import LabConfig
Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /constants.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
14+ """Common constant factors for time and frequency"""
15+
116ns = 1e-9
17+ """Conversion factor between nanoseconds and seconds"""
18+
219us = 1e-6
20+ """Conversion factor between microseconds and seconds"""
21+
322ms = 1e-3
23+ """Conversion factor between milliseconds and seconds"""
24+
425s = 1
26+ """Conversion factor between seconds and seconds"""
27+
528Hz = 1
29+ """Conversion factor between hertz and hertz"""
30+
631kHz = 1e3
32+ """Conversion factor between kilohertz and hertz"""
33+
734MHz = 1e6
8- GHz = 1e9
35+ """Conversion factor between megahertz and hertz"""
36+
37+ GHz = 1e9
38+ """Conversion factor between gigahertz and hertz"""
Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /core.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
14+ """Core classes containing common device functionality. These are used in
15+ labscript-devices when adding support for a hardware device."""
16+
117import sys
218
319import numpy as np
Original file line number Diff line number Diff line change 1111# #
1212#####################################################################
1313
14+ """Contains the functional forms of analog output ramps. These are not used directly,
15+ instead see the interfaces in `AnalogQuantity`/`AnalogOut`."""
16+
1417from pylab import *
1518import numpy as np
1619
Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /inputs.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
114"""Classes for device channels that are inputs"""
215
316from .base import Device
Original file line number Diff line number Diff line change 1111# #
1212#####################################################################
1313
14+ """Everything else including the `start()`, `stop()`, and `wait()` functions. All other
15+ classes are also imported here for backwards compatibility"""
16+
1417import builtins
1518import os
1619import sys
Original file line number Diff line number Diff line change 1- """Classes for devices channels that out outputs"""
1+ #####################################################################
2+ # #
3+ # /outputs.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
14+ """Classes for devices channels that are outputs"""
215
316import sys
417
Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /remote.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
14+ """Classes for configuring remote/secondary BLACS and/or device workers"""
15+
116from .compiler import compiler
217from .labscript import Device , set_passed_properties
318
Original file line number Diff line number Diff line change 1+ #####################################################################
2+ # #
3+ # /utils.py #
4+ # #
5+ # Copyright 2013, Monash University #
6+ # #
7+ # This file is part of the program labscript, in the labscript #
8+ # suite (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+
14+ """Utility functions"""
15+
116import contextlib
217from inspect import getcallargs
318from functools import wraps
You can’t perform that action at this time.
0 commit comments