Skip to content

Commit

Permalink
enaRawMode added
Browse files Browse the repository at this point in the history
  • Loading branch information
Coimbra1984 authored Sep 16, 2020
1 parent 3ee2a6c commit ddce500
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nimbusPython/NimbusClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,14 @@ def getImage(self, invalidAsNan=True):
z = radial*self._uz
return header, (ampl, radial, x, y, z, conf)
return image


def enaRawMode(self, ena):
if ena == True:
arg = 1
else:
arg = 0
return self.setJSONParameter("preprocessing", 0, arg)

def getUserlandVersion(self):
result = self._getJSONParameter("preprocessing", 1, None)
rv = result["success"]
Expand Down Expand Up @@ -450,4 +457,4 @@ def getExposureMode(self):

if __name__ == "__main__":
cli = NimbusClient("192.168.1.24")
header, (ampl, radial, x, y, z, conf) = cli.getImage(invalidAsNan=True)
header, (ampl, radial, x, y, z, conf) = cli.getImage(invalidAsNan=True)

0 comments on commit ddce500

Please sign in to comment.