Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def validate(self, instance, value):
if isinstance(value, list):
value = discretize.utils.meshTensor(value)
return super(TimeStepArray, self).validate(instance, value)
def validate(self, instance, value):
if isinstance(value, list):
value = meshTensor(value)
return super(TimeStepArray, self).validate(instance, value)