better as it is more
readable. If valuerange() is not an acceptable name, maybe span()?
-Eli
On Fri, May 10, 2013 at 10:44 PM, Pauli Virtanen p...@iki.fi wrote:
10.05.2013 08:47, Eli Bressert kirjoitti:
[clip: renaming ptp]
valuerange() appears to the best most favored one.
range(), arange
Hi Everyone,
Is Numpy supposed to behave this like this when converting an array of
numbers to an array of strings with astype?
print(arange(20).astype(np.str))
['0' '1' '2' '3' '4' '5' '6' '7' '8' '9' '1' '1' '1' '1' '1' '1' '1'
'1' '1' '1']
When I do the following it works fine,
?
Thanks,
Eli Bressert
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Hi,
I'm writing a quick script to import a fits (astronomy) image that has
very low values for each pixel. Mostly on the order of 10^-9. I have
written a python script that attempts to take low values and put them
in integer format. I basically do this by taking the mean of the 1000
lowest pixel