PyTektronixScope icon indicating copy to clipboard operation
PyTektronixScope copied to clipboard

Two unresolved references in code

Open RonFredericks opened this issue 7 years ago • 1 comments

in file PyTektronixScope.py

Unresolved reference 1:

in line 184/184: def get_out_waveform_vertical_scale_factor(self): return float(self.ask('%s:SCA?'%self.channel_name(channel))) The reference to 'channel' is unresolved. I suspect the member function should include 'channel' as a parameter

Unresolved reference 2:

in lines 321/322: raise TektronixScopeError("Try to read channel %s which
is not selectecd"%(str(name))) The reference to 'name' is not resolved. I suspect the variable 'name' should be 'channel'

RonFredericks avatar Jan 06 '18 19:01 RonFredericks

Thanks for your comments. Ref 1 : there is now two functions : get_out_waveform_vertical_scale_factor that returns 'WFMO:YMUlt?' and get_vertical_scale(self, channel) that returns 'CHx:SCA' Ref 2: OK

See commit fa82158

clade avatar Mar 01 '18 10:03 clade