nastasiasnk commited on
Commit
3cc6a9a
1 Parent(s): 07ba2d7

Update imports_utils.py

Browse files
Files changed (1) hide show
  1. imports_utils.py +2 -0
imports_utils.py CHANGED
@@ -374,6 +374,7 @@ def getDataFromGrasshopper(
374
 
375
  if inputNameAlpha is not None:
376
  alpha = inputJson['input'][inputNameAlpha]
 
377
  if alpha is None:
378
  alpha = alphaDefault
379
  else:
@@ -381,6 +382,7 @@ def getDataFromGrasshopper(
381
 
382
  if inputNameThreshold is not None:
383
  threshold = inputJson['input'][inputNameThreshold]
 
384
  if threshold is None:
385
  threshold = thresholdDefault
386
  else:
 
374
 
375
  if inputNameAlpha is not None:
376
  alpha = inputJson['input'][inputNameAlpha]
377
+ alpha = float(alpha)
378
  if alpha is None:
379
  alpha = alphaDefault
380
  else:
 
382
 
383
  if inputNameThreshold is not None:
384
  threshold = inputJson['input'][inputNameThreshold]
385
+ threshold = float(threshold)
386
  if threshold is None:
387
  threshold = thresholdDefault
388
  else: