Skip to content

Commit ddce500

Browse files
authored
enaRawMode added
1 parent 3ee2a6c commit ddce500

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

nimbusPython/NimbusClient.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,14 @@ def getImage(self, invalidAsNan=True):
318318
z = radial*self._uz
319319
return header, (ampl, radial, x, y, z, conf)
320320
return image
321-
321+
322+
def enaRawMode(self, ena):
323+
if ena == True:
324+
arg = 1
325+
else:
326+
arg = 0
327+
return self.setJSONParameter("preprocessing", 0, arg)
328+
322329
def getUserlandVersion(self):
323330
result = self._getJSONParameter("preprocessing", 1, None)
324331
rv = result["success"]
@@ -450,4 +457,4 @@ def getExposureMode(self):
450457

451458
if __name__ == "__main__":
452459
cli = NimbusClient("192.168.1.24")
453-
header, (ampl, radial, x, y, z, conf) = cli.getImage(invalidAsNan=True)
460+
header, (ampl, radial, x, y, z, conf) = cli.getImage(invalidAsNan=True)

0 commit comments

Comments
 (0)