Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #56 from scikit-hep/awkward-lazyarrays
Browse files Browse the repository at this point in the history
Awkward lazyarrays
  • Loading branch information
jpivarski authored May 20, 2019
2 parents cfd06b7 + 58cf60e commit 53b5420
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ install:
- pip install $NUMPY
- if [[ $TRAVIS_PYTHON_VERSION = pypy* ]] ; then pip install "numpy<1.16.0" ; fi # FIXME: pypy bug in numpy
- python -c 'import numpy; print(numpy.__version__)'
- pip install "awkward>=0.9.0"
- pip install "awkward>=0.10.0"
- python -c 'import awkward; print(awkward.__version__)'
- pip install pytest pytest-runner
- pip install --upgrade pyOpenSSL # for deployment
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Dependencies:
-------------

- `numpy <https://scipy.org/install.html>`__ (1.13.1+)
- `awkward-array <https://github.com/scikit-hep/awkward-array>`__ (0.9.0+)
- `awkward-array <https://github.com/scikit-hep/awkward-array>`__ (0.10.0+)

.. inclusion-marker-3-do-not-remove
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ install:
build_script:
- "pip install %NUMPY%"
- "pip install pytest pytest-runner"
- "pip install \"awkward>=0.9.0\""
- "pip install \"awkward>=0.10.0\""
- "python -c \"import awkward; print(awkward.__version__)\""
- "pytest -v tests"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
numpy>=1.13.1
awkward>=0.9.0
awkward>=0.10.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_description():
download_url = "https://github.com/scikit-hep/uproot-methods/releases",
license = "BSD 3-clause",
test_suite = "tests",
install_requires = ["numpy>=1.13.1", "awkward>=0.9.0"],
install_requires = ["numpy>=1.13.1", "awkward>=0.10.0"],
tests_require = [],
classifiers = [
"Development Status :: 4 - Beta",
Expand Down
12 changes: 12 additions & 0 deletions uproot_methods/profiles/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot-methods/blob/master/LICENSE

import importlib
import re

def transformer(name):
m = re.match("^([a-zA-Z_][a-zA-Z_0-9]*)(\.[a-zA-Z_][a-zA-Z_0-9]*)*$", name)
if m is None:
raise ValueError("profile name must match \"identifier(.identifier)*\"")
return getattr(importlib.import_module("uproot_methods.profiles." + m.string), "transform")
3 changes: 3 additions & 0 deletions uproot_methods/profiles/cms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot-methods/blob/master/LICENSE
6 changes: 6 additions & 0 deletions uproot_methods/profiles/cms/nanoaod.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python

# BSD 3-Clause License; see https://github.com/scikit-hep/uproot-methods/blob/master/LICENSE

def transform(array):
raise NotImplementedError
2 changes: 1 addition & 1 deletion uproot_methods/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import re

__version__ = "0.5.1"
__version__ = "0.6.0"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 53b5420

Please sign in to comment.