Will do. I'm working on my side to get a solution that works. It seems
that when i use append_field i dont get a recarray back and when i call
asrecarray=True, i get an error. once i fix this. i will replicate the
error and post to github.
On Thu, May 11, 2017 at 5:07 PM, Eric Wieser
wrote:
>
Even if you solve your own problem, please do - a SystemError is 100% a
mistake in numpy, and should never be raised from python code, even if you
call a numpy function with the wrong inputs.
Eric
On Thu, 11 May 2017 at 19:35 Isaac Gerg wrote:
> Sure.
>
> On Thu, May 11, 2017 at 2:31 PM, Eric W
On 11 May 2017, at 8:52 pm, Isaac Gerg wrote:
>
> Looking at the code, i think merge and stack take in ndarrays, not recarrays
> is that correct?
It should accept either; however if your a and b are two recarrays with all
uniquely named columns
to get the 10-column recarray in your original exa
Hi All,
Do indeed try __array_ufunc__! It should make many things work much
better and possibly faster than was possible with __array_prepare__
and __array_wrap__ (for astropy's Quantity, an ndarray subclass than I
maintain, it gets us a factor of almost 2 in speed for operations
where scaling for
Looking at the code, i think merge and stack take in ndarrays, not recarrays
is that correct?
On Thu, May 11, 2017 at 2:34 PM, Isaac Gerg wrote:
> Sure.
>
> On Thu, May 11, 2017 at 2:31 PM, Eric Wieser
> wrote:
>
>> If that's the case, can you file an issue on github along with a minimal
>> exa
Sure.
On Thu, May 11, 2017 at 2:31 PM, Eric Wieser
wrote:
> If that's the case, can you file an issue on github along with a minimal
> example that produces the error, and the full stack trace?
>
> On Thu, 11 May 2017 at 19:29 Isaac Gerg wrote:
>
>> newtable = np.lib.recfunctions.merge_arrays([
If that's the case, can you file an issue on github along with a minimal
example that produces the error, and the full stack trace?
On Thu, 11 May 2017 at 19:29 Isaac Gerg wrote:
> newtable = np.lib.recfunctions.merge_arrays([a, b], asrecarray=True)
>
> yeilds:
>
> builtins.SystemError: ..\Objec
newtable = np.lib.recfunctions.merge_arrays([a, b], asrecarray=True)
yeilds:
builtins.SystemError: ..\Objects\dictobject.c:2054: bad argument to
internal function
On Thu, May 11, 2017 at 2:02 PM, Benjamin Root wrote:
> Check in numpy.recfunctions. I know there is merge_arrays() and
> stack_arr
Check in numpy.recfunctions. I know there is merge_arrays() and
stack_arrays(). I forget which one does what.
Cheers!
Ben Root
On Thu, May 11, 2017 at 1:51 PM, Isaac Gerg wrote:
> I'd prefer to stay in numpy land if possible.
>
> On Thu, May 11, 2017 at 1:17 PM, Isaac Xin Pei wrote:
>
>> Chec
I'd prefer to stay in numpy land if possible.
On Thu, May 11, 2017 at 1:17 PM, Isaac Xin Pei wrote:
> Check Pandas pd.concate ?
> On Thu, May 11, 2017 at 12:45 PM Isaac Gerg
> wrote:
>
>> I have 2 arrays, a and b which are rec arrays of length 10. Each array
>> has 5 columns.
>>
>> I would lik
Check Pandas pd.concate ?
On Thu, May 11, 2017 at 12:45 PM Isaac Gerg wrote:
> I have 2 arrays, a and b which are rec arrays of length 10. Each array
> has 5 columns.
>
> I would like to combine all the columns into a single recarray with 10
> columns and length 10.
>
> Thanks,
> Isaac
> ___
I have 2 arrays, a and b which are rec arrays of length 10. Each array has
5 columns.
I would like to combine all the columns into a single recarray with 10
columns and length 10.
Thanks,
Isaac
___
NumPy-Discussion mailing list
NumPy-Discussion@python.
Also, as friendly reminder, GitHub is a better place for bug reports than
mailing lists with hundreds of subscribers :).
On Thu, May 11, 2017 at 6:56 AM, Eric Wieser
wrote:
> Nadav: Can you provide a testcase that fails?
>
> I don't think you're correct - it works just fine when `axis = a.ndims`
Nadav: Can you provide a testcase that fails?
I don't think you're correct - it works just fine when `axis = a.ndims` -
the issue arises when `axis > a.ndims`, but I'd argue that in that case an
error is correct behaviour. But still a change, so perhaps needs a release
note entry
On Thu, 11 May 2
There is a change to "expand_dims" function, that it is now does not allow axis
= a.ndims.
This influences matplotlib function get_bending_matrices in triinterpolate.py
Nadav
From: NumPy-Discussion
on behalf of
Charles R Harris
Sent: 11 May 2017 04:48:34
15 matches
Mail list logo