def check_type(self, value):
try:<EOL><INDENT>scalar = asscalar(value)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>raise TypeError(e)<EOL><DEDENT>super(Parameter, self).check_type(scalar)<EOL>
Hook for type-checking, invoked during assignment. Allows size 1
        numpy arrays and lists, but raises TypeError if value can not
        be cast to a scalar.