-
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.
Replace DressedType with parameters on all the Types. (#32)
* duplicate test_PR019 to create pull request in github * correct PR number, update test a bit * oops, forgot the files * [WIP] Replace DressedType with parameters on all the Types. * unhappy with booleans * Attach Parameters to all Types. * Added parameters to all Type constructors except UnionType and RecordType: need to change their signatures to accomodate. * All Type constructors can accept 'parameters'. * Updated Pickle getstate/setstate to pass on 'parameters'. * Parameters are persistent properties of all non-dressed types. * Type::equal can check parameters as part of equality, but Content::accepts still works. * Remove Type::shallow_equal, which was only ever used in Content::accepts. * Type parameters pass through Numba. * Switched RecordType field name quoting to double quotes. * Dress types using a user-controllable namespace, without DressedType. * Implemented the '__class__' and '__str__' parameters. * Replace all raw pointers 'Fillable*' with smart 'std::shared_ptr<Fillable>'. * Removed the old DressedType completely (commented out). * Removed the old DressedType completely (deleted). * [skip ci] Fillable::beginrecord with name; Numba doesn't work yet. * [skip ci] FillableArray.beginrecord works in Numba. * Record names declared in FillableArray are now attached as a Type parameter. * Various clean-ups: parameters_FIXME and Fillable Type::none() FIXMEs. * [skip ci] FillableArray::type doesn't require a snapshot, but baretype does. (Get rid of FillableArray::type? It's redundant because you can always take a snapshot.) * [skip ci] Working on adding Fillable*::string, but it doesn't compile yet. * Fillable*::string compiles and works in Python. * Fix Python-side bugs. * Strings can be written out with 'tojson'. * Fix Python 2.7. * Fix Python 2.7 some more. * Tested fromiter and fromjson for strings. Everything works. Done with this PR. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README. * Updating README.
- Loading branch information
Showing
84 changed files
with
4,287 additions
and
2,085 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Awkward 1.0 | ||
|
||
### Dependencies | ||
- cmake | ||
- gcc | ||
- g++ | ||
- pytest | ||
|
||
|
||
### Setup | ||
- Clone the repo: | ||
`git clone --recursive https://github.com/scikit-hep/awkward-1.0.git` | ||
|
||
- Build awkward: | ||
`python setup.py build` | ||
|
||
- Test build: | ||
`pytest -vv tests` | ||
|
||
|
||
### Contribution | ||
- Branch off, create a pull request - PR# used to name new tests | ||
- Clean build dir with: | ||
- rm -rf **/*~ **/__pycache__ build dist *.egg-info awkward1/*.so **/*.pyc | ||
- Do this whenever: | ||
- CMakeLists.txt changes (cpp tests must be manually included, follow existing format) |
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.31 | ||
0.1.32 |
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
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
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.