File tree Expand file tree Collapse file tree 5 files changed +19
-15
lines changed Expand file tree Collapse file tree 5 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 1111# #
1212#####################################################################
1313
14- """The labscript compiler interface. This is only relevant to developers and those
14+ """The labscript compiler interface - this is only relevant to developers and those
1515interested in the labscript interface to runmanager."""
1616
1717import builtins
Original file line number Diff line number Diff line change 1111# #
1212#####################################################################
1313
14- """Core classes containing common device functionality. These are used in
14+ """Core classes containing common device functionality - these are used in
1515labscript-devices when adding support for a hardware device."""
1616
1717import sys
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,
14+ """Contains the functional forms of analog output ramps - these are not used directly,
1515instead see the interfaces in `AnalogQuantity`/`AnalogOut`."""
1616
1717from pylab import *
1818import numpy as np
1919
20- def print_time (t , description ):
21- """Print time with a descriptive string.
20+ from .utils import print_time
2221
23- Useful debug tool to print time at a specific point
24- in the shot, during shot compilation. Helpful when
25- the time is calculated.
26-
27- Args:
28- t (float): Time to print
29- description (str): Descriptive label to print with it
30- """
31- print ('t = {0:.9f} s:' .format (t ),description )
3222
3323def ramp (duration , initial , final ):
3424 """Defines a linear ramp.
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
14+ """Everything else including the `start()`, `stop()`, and `wait()` functions - all other
1515classes are also imported here for backwards compatibility"""
1616
1717import builtins
Original file line number Diff line number Diff line change 2626cached_PseudoclockDevice = None
2727
2828
29+ def print_time (t , description ):
30+ """Print time with a descriptive string.
31+
32+ Useful debug tool to print time at a specific point
33+ in the shot, during shot compilation. Helpful when
34+ the time is calculated.
35+
36+ Args:
37+ t (float): Time to print
38+ description (str): Descriptive label to print with it
39+ """
40+ print (f"t={ t :.9f} s: { description } " )
41+
42+
2943def is_remote_connection (connection ):
3044 """Returns whether the connection is an instance of ``_RemoteConnection``
3145
You can’t perform that action at this time.
0 commit comments