MCPcopy Create free account
hub / github.com/SegataLab/lefse / funcIsValidNumericList

Method funcIsValidNumericList

lefsebiom/ValidateData.py:436–455  ·  view source on GitHub ↗

Validates a parameter as a list of numeric values. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is a list of numeric values. :type Boolean

(parameterValue)

Source from the content-addressed store, hash-verified

434 #Tested 7
435 @staticmethod
436 def funcIsValidNumericList(parameterValue):
437 """
438 Validates a parameter as a list of numeric values.
439
440 :param parameterValue: Value to be evaluated.
441 :type Unknown
442 :return Boolean: True indicates the parameter is a list of numeric values.
443 :type Boolean
444 """
445
446 #Check is valid list
447 if(not ValidateData.funcIsValidList(parameterValue)):
448 return False
449
450 #Check elements
451 listSize = len(parameterValue)
452 for i in range(0,listSize):
453 if(not ValidateData.funcIsValidNumeric(parameterValue[i])):
454 return False
455 return True
456
457 #Tested 7
458 @staticmethod

Callers

nothing calls this directly

Calls 2

funcIsValidListMethod · 0.80
funcIsValidNumericMethod · 0.80

Tested by

no test coverage detected