ed follows the PEP20 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 wrote:
> 10.05.2013 08:47, Eli Bressert kirjoitti:
> [clip: renaming ptp]
>> valuerange() appears to the best most
The peak-to-peak function, ptp(), is a simple and handy function to
use, but it confuses the PEP20 suggestions a bit. See this discussion
for reference: http://d.pr/i/snXG
Based on the discussion, it may be a good idea to make the name more
relevant? Some suggestions include span() or valuerange()
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,
print(arange(
numpy.std can process ignore
nan's when processing?
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 v