Skip to content

Commit

Permalink
Merge branch 'main' into check_cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski authored Nov 7, 2024
2 parents afe4d61 + 5145bce commit adc2160
Show file tree
Hide file tree
Showing 120 changed files with 6,120 additions and 365 deletions.
Binary file removed .DS_Store
Binary file not shown.
27 changes: 27 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,33 @@
"contributions": [
"code"
]
},
{
"login": "tacaswell",
"name": "Thomas A Caswell",
"avatar_url": "https://avatars.githubusercontent.com/u/199813?v=4",
"profile": "https://tacaswell.github.io",
"contributions": [
"maintenance"
]
},
{
"login": "basnijholt",
"name": "Bas Nijholt",
"avatar_url": "https://avatars.githubusercontent.com/u/6897215?v=4",
"profile": "http://www.nijho.lt",
"contributions": [
"maintenance"
]
},
{
"login": "nj-vs-vh",
"name": "Igor Vaiman",
"avatar_url": "https://avatars.githubusercontent.com/u/30616208?v=4",
"profile": "https://nj-vs-vh.name/",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
28 changes: 8 additions & 20 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:

- os: windows-latest
arch: auto32
build: "cp{38,39}-"
build: "cp"

steps:
- uses: actions/checkout@v4
Expand All @@ -100,12 +100,12 @@ jobs:
python-version: '3.12'

- name: Setup uv
uses: yezz123/setup-uv@v4
uses: astral-sh/setup-uv@v3

- name: Prepare build files
run: pipx run nox -s prepare

- uses: pypa/cibuildwheel@v2.20
- uses: pypa/cibuildwheel@v2.21
env:
CIBW_BUILD: "${{ matrix.build }}*"
CIBW_ARCHS: ${{ matrix.arch }}
Expand All @@ -114,13 +114,7 @@ jobs:
package-dir: awkward-cpp

- name: Check metadata
shell: python
run: |
import subprocess, glob
subprocess.run(
["pipx", "run", "twine", "check", *glob.glob("wheelhouse/*.whl")],
check=True
)
run: pipx run twine check wheelhouse/*.whl

- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -150,14 +144,14 @@ jobs:
python-version: '3.12'

- name: Setup uv
uses: yezz123/setup-uv@v4
uses: astral-sh/setup-uv@v3

- name: Prepare build files
run: pipx run nox -s prepare

- uses: docker/setup-qemu-action@v3.2.0

- uses: pypa/cibuildwheel@v2.20
- uses: pypa/cibuildwheel@v2.21
env:
CIBW_BUILD: cp${{ matrix.python }}-*
CIBW_ARCHS: ${{ matrix.arch }}
Expand All @@ -166,13 +160,7 @@ jobs:
package-dir: awkward-cpp

- name: Check metadata
shell: python
run: |
import subprocess, glob
subprocess.run(
["pipx", "run", "twine", "check", *glob.glob("wheelhouse/*.whl")],
check=True
)
run: pipx run twine check wheelhouse/*.whl

- name: Upload wheels
uses: actions/upload-artifact@v4
Expand All @@ -192,7 +180,7 @@ jobs:
submodules: true

- name: Setup uv
uses: yezz123/setup-uv@v4
uses: astral-sh/setup-uv@v3

- name: Prepare build files
run: pipx run nox -s prepare
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
with:
subject-path: "dist/awkward*cpp-*"

- uses: pypa/gh-action-pypi-publish@v1.10.1
- uses: pypa/gh-action-pypi-publish@v1.10.2
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh attestation verify dist/awkward-*.whl --repo ${{ github.repository }}

- uses: pypa/gh-action-pypi-publish@v1.10.1
- uses: pypa/gh-action-pypi-publish@v1.10.2

publish-headers:
name: "Publish header-only libraries alongside release"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/packaging-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ jobs:
submodules: true

- name: Setup uv
uses: yezz123/setup-uv@v4
uses: astral-sh/setup-uv@v3

- name: Prepare build files
run: pipx run nox -s prepare

- uses: pypa/cibuildwheel@v2.20
- uses: pypa/cibuildwheel@v2.21
env:
CIBW_ARCHS_MACOS: universal2
CIBW_BUILD: cp39-win_amd64 cp310-manylinux_x86_64 cp38-macosx_universal2
with:
config-file: cibuildwheel.toml
package-dir: awkward-cpp

- uses: pypa/cibuildwheel@v2.20
- uses: pypa/cibuildwheel@v2.21
if: matrix.os == 'ubuntu-latest'
env:
CIBW_BUILD: cp312-manylinux_x86_64
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload-nightly-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
ls -l dist/
- name: Upload wheels to Anaconda Cloud as nightlies
uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
studies/**/sample-*
studies/named_axis.*
docs/demos/countries.geojson
docs/demos/test-program
docs/demos/test-program.cpp
Expand Down Expand Up @@ -161,3 +162,6 @@ Testing/
# Pip stuff
/pip-wheel-metadata/*
/_skbuild/*

# MacOS
.DS_Store
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:
exclude: ^(docs|studies|tests/samples|src/awkward/_typeparser/generated_parser.py)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -27,7 +27,7 @@ repos:
additional_dependencies: [pyyaml]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
rev: v0.6.9
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -62,7 +62,7 @@ repos:
files: ^tests/

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
rev: 0.29.3
hooks:
- id: check-github-workflows
args: ["--verbose"]
Expand All @@ -76,6 +76,6 @@ repos:
- numpy>=1.24

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.19
rev: v0.20.2
hooks:
- id: validate-pyproject
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ authors:
email: "nick.smith@cern.ch"
- family-names: "Goyal"
given-names: "Manasvi"
affiliation: "Delhi Technological University"
affiliation: "Harvard University"
orcid: "https://orcid.org/0000-0001-6321-7491"
email: "mg.manasvi@gmail.com"
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ year = {2018}

# Acknowledgements

Support for this work was provided by NSF cooperative agreements [OAC-1836650](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1836650) and [PHY-2323298](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2323298) (IRIS-HEP), grant [OAC-1450377](https://nsf.gov/awardsearch/showAward?AWD_ID=1450377) (DIANA/HEP), [PHY-2121686](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2121686) (US-CMS LHC Ops), and [OAC-2103945](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2103945) (Awkward Array).
Support for this work was provided by NSF cooperative agreement [OAC-1836650](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1836650) (IRIS-HEP 1), [PHY-2323298](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2323298) (IRIS-HEP 2), grant [OAC-1450377](https://nsf.gov/awardsearch/showAward?AWD_ID=1450377) (DIANA/HEP), [PHY-1520942](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1520942) and [PHY-2121686](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2121686) (US-CMS LHC Ops), and [OAC-2103945](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2103945) (Awkward Array).

We also thank [Erez Shinan](https://github.com/erezsh) and the developers of the [Lark standalone parser](https://github.com/lark-parser/lark), which is used to parse type strings as type objects.

Expand Down Expand Up @@ -230,6 +230,9 @@ Thanks especially to the gracious help of Awkward Array contributors (including
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pfackeldey"><img src="https://avatars.githubusercontent.com/u/18463582?v=4?s=100" width="100px;" alt="Peter Fackeldey"/><br /><sub><b>Peter Fackeldey</b></sub></a><br /><a href="https://github.com/scikit-hep/awkward/commits?author=pfackeldey" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://www.ariostas.com"><img src="https://avatars.githubusercontent.com/u/7596837?v=4?s=100" width="100px;" alt="Andres Rios Tascon"/><br /><sub><b>Andres Rios Tascon</b></sub></a><br /><a href="https://github.com/scikit-hep/awkward/commits?author=ariostas" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/maxymnaumchyk"><img src="https://avatars.githubusercontent.com/u/70752300?v=4?s=100" width="100px;" alt="maxymnaumchyk"/><br /><sub><b>maxymnaumchyk</b></sub></a><br /><a href="https://github.com/scikit-hep/awkward/commits?author=maxymnaumchyk" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://tacaswell.github.io"><img src="https://avatars.githubusercontent.com/u/199813?v=4?s=100" width="100px;" alt="Thomas A Caswell"/><br /><sub><b>Thomas A Caswell</b></sub></a><br /><a href="#maintenance-tacaswell" title="Maintenance">🚧</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://www.nijho.lt"><img src="https://avatars.githubusercontent.com/u/6897215?v=4?s=100" width="100px;" alt="Bas Nijholt"/><br /><sub><b>Bas Nijholt</b></sub></a><br /><a href="#maintenance-basnijholt" title="Maintenance">🚧</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://nj-vs-vh.name/"><img src="https://avatars.githubusercontent.com/u/30616208?v=4?s=100" width="100px;" alt="Igor Vaiman"/><br /><sub><b>Igor Vaiman</b></sub></a><br /><a href="https://github.com/scikit-hep/awkward/commits?author=nj-vs-vh" title="Code">💻</a></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion awkward-cpp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "awkward_cpp"
version = "38"
version = "39"
dependencies = [
"numpy>=1.18.0",
"importlib_resources;python_version < \"3.9\""
Expand Down
2 changes: 1 addition & 1 deletion awkward-cpp/rapidjson
5 changes: 4 additions & 1 deletion dev/generate-kernel-signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,10 @@ def by_signature(cuda_kernel_templates):
special = [repr(spec["name"])]
[type_to_pytype(x["type"], special) for x in childfunc["args"]]
dirlist = [repr(x["dir"]) for x in childfunc["args"]]
ispointerlist = [repr("List" in x["type"]) for x in childfunc["args"]]
ispointerlist = [
repr("List" in x["type"] or "ListArray-at" == x.get("role", None))
for x in childfunc["args"]
]
if spec["name"] in cuda_kernels_impl:
with open(
os.path.join(
Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/funding.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>Support for this work was provided by NSF cooperative agreement <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=1836650">OAC-1836650</a> (IRIS-HEP), grant <a href="https://nsf.gov/awardsearch/showAward?AWD_ID=1450377">OAC-1450377</a> (DIANA/HEP), <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=1520942">PHY-1520942</a> (US-CMS LHC Ops), and <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2103945">OAC-2103945</a> (Awkward Array).</p>
<p>Support for this work was provided by NSF cooperative agreement <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=1836650">OAC-1836650</a> (IRIS-HEP 1), <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2323298">PHY-2323298</a> (IRIS-HEP 2), grant <a href="https://nsf.gov/awardsearch/showAward?AWD_ID=1450377">OAC-1450377</a> (DIANA/HEP), <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=1520942">PHY-1520942</a> and <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2121686">PHY-2121686</a> (US-CMS LHC Ops), and <a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2103945">OAC-2103945</a> (Awkward Array).</p>
12 changes: 9 additions & 3 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ title: "Awkward Array"
defaults:
titlesonly: True


subtrees:
- entries:
- file: getting-started/index
subtrees:
- entries:
- entries:
- file: getting-started/what-is-an-awkward-array
- file: getting-started/10-minutes-to-awkward-array
- file: getting-started/uproot-awkward-columnar-hats
Expand All @@ -18,7 +17,7 @@ subtrees:
- file: getting-started/papers-and-talks
- file: user-guide/index
subtrees:
- entries:
- entries:
- file: user-guide/how-to-convert
title: "Converting arrays"
subtrees:
Expand Down Expand Up @@ -74,6 +73,13 @@ subtrees:
- file: user-guide/how-to-examine-checking-validity
title: "Checking validity"

- file: user-guide/how-to-array-properties
title: "Array properties"
subtrees:
- entries:
- file: user-guide/how-to-array-properties-named-axis
title: "Named axes"

- file: user-guide/how-to-math
title: "Numerical math"
subtrees:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
html_js_files = ["js/awkward.js"]

# MyST settings
myst_enable_extensions = ["colon_fence"]
myst_enable_extensions = ["colon_fence", "deflist"]

nb_execution_mode = "cache"
nb_execution_raise_on_error = True
Expand Down
8 changes: 8 additions & 0 deletions docs/reference/toctree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
generated/ak.to_feather
generated/ak.from_avro_file

.. toctree::
:caption: Conversions for machine learning

generated/ak.from_raggedtensor
generated/ak.to_raggedtensor
generated/ak.from_torch
generated/ak.to_torch

.. toctree::
:caption: Converting to Pandas DataFrames

Expand Down
Loading

0 comments on commit adc2160

Please sign in to comment.