Skip to content

Commit e3d3ece

Browse files
committed
Omit __init__ import and comply with flake8 F403
1 parent 6b26f1f commit e3d3ece

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

example.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,21 @@
1111
# #
1212
#####################################################################
1313

14-
import __init__ # only have to do this because we're inside the labscript directory
15-
from labscript import *
14+
import numpy as np
15+
from labscript import (
16+
AnalogIn,
17+
AnalogOut,
18+
ClockLine,
19+
DDS,
20+
DigitalOut,
21+
MHz,
22+
Shutter,
23+
StaticDDS,
24+
WaitMonitor,
25+
start,
26+
stop,
27+
wait,
28+
)
1629
from labscript_devices.PulseBlaster import PulseBlaster
1730
from labscript_devices.NI_DAQmx.labscript_devices import NI_PCIe_6363
1831
from labscript_devices.NovaTechDDS9M import NovaTechDDS9M
@@ -193,7 +206,7 @@
193206
analog1.t0,
194207
duration=6,
195208
amplitude=5,
196-
angfreq=2 * pi,
209+
angfreq=2 * np.pi,
197210
phase=0,
198211
dc_offset=0.0,
199212
samplerate=rate,

0 commit comments

Comments
 (0)