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 =
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