def clean(self, value):
if isinstance(value, numpy.ndarray):<EOL><INDENT>return value<EOL><DEDENT>elif isinstance(value, (list, tuple)):<EOL><INDENT>return numpy.array(value)<EOL><DEDENT>raise ParameterNotValidError<EOL>
Cleans and returns the given value, or raises a ParameterNotValidError exception