Skip to content

Commit

Permalink
PEP8 conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
CoherenceController committed Oct 14, 2016
1 parent 392cc1a commit 242b24b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions ChannelsViews.enaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ enamldef PhysicalMarkerChannelView(GroupBox): curView:
index ::
chan.AWG = selected_item
chan.translator = instrumentLib[selected_item].translator
chan.samplingRate = instrumentLib[selected_item].samplingRate
chan.sampling_rate = instrumentLib[selected_item].sampling_rate

enamldef PhysicalQuadratureChannelView(GroupBox): curView:
attr chan
Expand All @@ -89,7 +89,7 @@ enamldef PhysicalQuadratureChannelView(GroupBox): curView:
index ::
chan.AWG = selected_item
chan.translator = instrumentLib[selected_item].translator
chan.samplingRate = instrumentLib[selected_item].samplingRate
chan.sampling_rate = instrumentLib[selected_item].sampling_rate
Label:
text = 'Source'
ComboBox:
Expand All @@ -109,7 +109,7 @@ enamldef PhysicalQuadratureChannelView(GroupBox): curView:
text = 'Phase Skew (deg.)'
FloatField:
value := chan.phaseSkew


enamldef LogicalQuadratureView(GroupBox): curView:
attr chan
Expand Down Expand Up @@ -196,7 +196,7 @@ enamldef LogicalQuadratureView(GroupBox): curView:
index << psList.index(chan.pulseParams[loop_item])
index ::
chan.pulseParams[loop_item] = psList[index]


enamldef EmptyChannelView(Container):
attr chan
Expand Down
6 changes: 3 additions & 3 deletions instruments/drivers/APS2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from atom.api import Int, Constant, Enum

class APS2(AWG):
numChannels = Int(default=2)
seqFileExt = Constant('.h5')
num_channels = Int(default=2)
seq_file_ext = Constant('.h5')
translator = Constant('APS2Pattern')
triggerSource = Enum('Internal', 'External', 'System').tag(desc='Source of trigger')
trigger_source = Enum('Internal', 'External', 'System').tag(desc='Source of trigger')

naming_convention = ['12', '12m1', '12m2', '12m3', '12m4']

Expand Down

0 comments on commit 242b24b

Please sign in to comment.