Skip to content

Commit

Permalink
fixed problem with empty sample description; use new sics.get_status(…
Browse files Browse the repository at this point in the history
…) function;
  • Loading branch information
David Mannicke committed Jul 12, 2017
1 parent b647083 commit 92b8e16
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -194,11 +194,11 @@ def waitUntilSicsIs(status, dt=0.2):
while repeat:
sics.handleInterrupt()

while not sics.getSicsController().getServerStatus().equals(status):
while not sics.get_status().equals(status):
time.sleep(dt)

time.sleep(dt)
repeat = not sics.getSicsController().getServerStatus().equals(status)
repeat = not sics.get_status().equals(status)

sics.handleInterrupt()

Expand Down Expand Up @@ -373,7 +373,7 @@ def setupMeasurement(parameters, meas_mode):
def setupSample(parameters):
# parameters
name = strOrDefault(parameters['Name'], "Unknown")
description = strOrDefault(parameters['Description'])
description = strOrDefault(parameters['Description'], "N.A.")
thickness = float(parameters['Thickness'])
position = float(parameters['Position'])

Expand Down

0 comments on commit 92b8e16

Please sign in to comment.