Re: [Numpy-discussion] get range of numpy type

2008-06-04 Thread Nathan Bell
On Wed, Jun 4, 2008 at 12:16 AM, Christopher Burns [EMAIL PROTECTED] wrote: Is there a way to get the range of a numpy type? I'd like to clamp a parameter to be within the range of a numpy type, np.uint8, np.uint32... Something like: if x max_value_of(np.uint8): x =

[Numpy-discussion] get range of numpy type

2008-06-03 Thread Christopher Burns
Is there a way to get the range of a numpy type? I'd like to clamp a parameter to be within the range of a numpy type, np.uint8, np.uint32... Something like: if x max_value_of(np.uint8): x = max_value_of(np.uint8) -- Christopher Burns Computational Infrastructure for Research Labs 10