​Personally I like atleast_1d, which will convert a scalar into a 1d array
but will leave arrays untouched (i.e. won't change the dimensions. Not
sure what the advantages/disadvantages are relative to asarray.
Jon​
On Fri, Oct 2, 2015 at 7:05 AM, wrote:
> From: Juha Jeronen
> To: Discussion
JB,
This behavior is a property of python slicing. It takes some getting used
to, but has its advantages. In general in a slice [i:j] the indices go
from i to j-1. In the case that i is 0 it's easy to think of it as j
giving the number of elements (by the way you can also do a[:j] -- i.e.
leavi
.."
>
> Today's Topics:
>
>1. no more search capability? (Slavin, Jonathan)
>
>
> -- Forwarded message --
> From: "Slavin, Jonathan"
> To: numpy-discussion@scipy.org
> Cc:
> Date: Thu, 5 Dec 2013 11:04:19 -0500
> Subjec
Hi all,
Although I like the look of the newly designed numpy/scipy web pages, I
have to say that I really miss the search capability. Is there any motion
toward restoring that?
Jon
--
Jonathan D. Slavin Harvard-Smithsonian
is wrote:
>
>>
>>
>> On Tue, Jun 4, 2013 at 12:07 PM, Slavin, Jonathan
>> > <mailto:jslavin@cfa.harvard.**edu>>
>> wrote:
>>
>> Hi,
>>
>> I would like to suggest that the behavior of numpy.interp be changed
>> regard
Hi,
I would like to suggest that the behavior of numpy.interp be changed
regarding treatment of situations in which the x-coordinates are not
monotonically increasing. Specifically, it seems to me that interp should
work correctly when the x-coordinate is decreasing monotonically. Clearly
it can