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

Renamed to pep8 method name

parent b490013a
...@@ -153,22 +153,22 @@ class HpibDevice(): ...@@ -153,22 +153,22 @@ class HpibDevice():
self._keepLocal = keepLocal self._keepLocal = keepLocal
self._pause = pause self._pause = pause
def keepRemote(self, keepRemote=False): def keep_remote(self, keepRemote=False):
self._keepLocal = not keepRemote self._keepLocal = not keepRemote
def setLocal(self, set2Local=True): def set_local(self, set2Local=True):
if set2Local: if set2Local:
self._port.set_local(self._hpib_address) self._port.set_local(self._hpib_address)
def command(self, commandStr): def command(self, commandStr):
self._port.command(self._hpib_address, commandStr) self._port.command(self._hpib_address, commandStr)
self.setLocal(self._keepLocal) self.set_local(self._keepLocal)
time.sleep(self._pause) time.sleep(self._pause)
def query(self, queryStr): def query(self, queryStr):
self._answerStr = self._port.query(self._hpib_address, queryStr) self._answerStr = self._port.query(self._hpib_address, queryStr)
self.setLocal(self._keepLocal) self.set_local(self._keepLocal)
return self._answerStr return self._answerStr
def getDevices(self): def get_devices(self):
return ["Not implemented"] return ["Not implemented"]
\ No newline at end of file
Supports Markdown
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