-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assign fields to records (deeply, through all structure). (#107)
It didn't need an `inverse` function on `IndexedArrays` and `UnionArrays` because in the end, I abstracted the broadcasting from ufunc-handling so that it can also be used for field assignment. There is also an immutable version of field-assignment as `ak.withfield`. * [WIP] Assign fields to records (deeply, through all structure). * Stubs for setitem_field (immutable). * Stub for tests. * setitem_field behavior defined for RecordArray. * Removed 'append' method so that RecordArray and RecordType are immutable (apart from 'identities' and 'parameters'). * Fixed tests. * RegularArray::setitem_field. * Fix tests. * Pull broadcasting logic out of awkward1._numpy into a general function. * ak.withfield and Array.__setitem__ automatically get broadcasting.
- Loading branch information
Showing
18 changed files
with
452 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.106 | ||
0.1.107 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.