Commit 3c29bfc8 authored by auke.klazema's avatar auke.klazema

Renamed to pep8 method name

parent b490013a
......@@ -153,22 +153,22 @@ class HpibDevice():
self._keepLocal = keepLocal
self._pause = pause
def keepRemote(self, keepRemote=False):
def keep_remote(self, keepRemote=False):
self._keepLocal = not keepRemote
def setLocal(self, set2Local=True):
def set_local(self, set2Local=True):
if set2Local:
self._port.set_local(self._hpib_address)
def command(self, commandStr):
self._port.command(self._hpib_address, commandStr)
self.setLocal(self._keepLocal)
self.set_local(self._keepLocal)
time.sleep(self._pause)
def query(self, queryStr):
self._answerStr = self._port.query(self._hpib_address, queryStr)
self.setLocal(self._keepLocal)
self.set_local(self._keepLocal)
return self._answerStr
def getDevices(self):
def get_devices(self):
return ["Not implemented"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment