annbatch 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. annbatch-0.0.2/.codecov.yaml +17 -0
  2. annbatch-0.0.2/.cruft.json +43 -0
  3. annbatch-0.0.2/.editorconfig +15 -0
  4. annbatch-0.0.2/.github/ISSUE_TEMPLATE/bug_report.yml +94 -0
  5. annbatch-0.0.2/.github/ISSUE_TEMPLATE/config.yml +5 -0
  6. annbatch-0.0.2/.github/ISSUE_TEMPLATE/feature_request.yml +11 -0
  7. annbatch-0.0.2/.github/workflows/build.yaml +33 -0
  8. annbatch-0.0.2/.github/workflows/release.yaml +34 -0
  9. annbatch-0.0.2/.github/workflows/test.yaml +102 -0
  10. annbatch-0.0.2/.gitignore +22 -0
  11. annbatch-0.0.2/.pre-commit-config.yaml +38 -0
  12. annbatch-0.0.2/.readthedocs.yaml +15 -0
  13. annbatch-0.0.2/.vscode/extensions.json +18 -0
  14. annbatch-0.0.2/.vscode/launch.json +33 -0
  15. annbatch-0.0.2/.vscode/settings.json +18 -0
  16. annbatch-0.0.2/CHANGELOG.md +27 -0
  17. annbatch-0.0.2/LICENSE +21 -0
  18. annbatch-0.0.2/PKG-INFO +219 -0
  19. annbatch-0.0.2/README.md +144 -0
  20. annbatch-0.0.2/biome.jsonc +17 -0
  21. annbatch-0.0.2/docs/_static/.gitkeep +0 -0
  22. annbatch-0.0.2/docs/_static/css/custom.css +4 -0
  23. annbatch-0.0.2/docs/_static/fit_time_vs_loading_speed.png +0 -0
  24. annbatch-0.0.2/docs/_static/speed_comparision.png +0 -0
  25. annbatch-0.0.2/docs/_templates/.gitkeep +0 -0
  26. annbatch-0.0.2/docs/_templates/autosummary/class.rst +61 -0
  27. annbatch-0.0.2/docs/api.md +39 -0
  28. annbatch-0.0.2/docs/changelog.md +3 -0
  29. annbatch-0.0.2/docs/conf.py +142 -0
  30. annbatch-0.0.2/docs/contributing.md +330 -0
  31. annbatch-0.0.2/docs/extensions/typed_returns.py +35 -0
  32. annbatch-0.0.2/docs/index.md +122 -0
  33. annbatch-0.0.2/docs/notebooks/example.ipynb +386 -0
  34. annbatch-0.0.2/docs/notebooks/index.md +8 -0
  35. annbatch-0.0.2/docs/references.bib +10 -0
  36. annbatch-0.0.2/docs/references.md +5 -0
  37. annbatch-0.0.2/docs/zarr-configuration.md +47 -0
  38. annbatch-0.0.2/pyproject.toml +191 -0
  39. annbatch-0.0.2/src/annbatch/__init__.py +11 -0
  40. annbatch-0.0.2/src/annbatch/compat.py +21 -0
  41. annbatch-0.0.2/src/annbatch/io.py +654 -0
  42. annbatch-0.0.2/src/annbatch/loader.py +696 -0
  43. annbatch-0.0.2/src/annbatch/types.py +24 -0
  44. annbatch-0.0.2/src/annbatch/utils.py +200 -0
  45. annbatch-0.0.2/tests/__init__.py +0 -0
  46. annbatch-0.0.2/tests/conftest.py +124 -0
  47. annbatch-0.0.2/tests/test_dataset.py +422 -0
  48. annbatch-0.0.2/tests/test_preshuffle.py +357 -0
  49. annbatch-0.0.2/tests/test_version.py +5 -0
@@ -0,0 +1,17 @@
1
+ # Based on pydata/xarray
2
+ codecov:
3
+ require_ci_to_pass: no
4
+
5
+ coverage:
6
+ status:
7
+ project:
8
+ default:
9
+ # Require 1% coverage, i.e., always succeed
10
+ target: 80
11
+ patch: false
12
+ changes: false
13
+
14
+ comment:
15
+ layout: diff, flags, files
16
+ behavior: once
17
+ require_base: no
@@ -0,0 +1,43 @@
1
+ {
2
+ "template": "https://github.com/scverse/cookiecutter-scverse",
3
+ "commit": "d383d94fadff9e4e6fdb59d77c68cb900d7cedec",
4
+ "checkout": "v0.6.0",
5
+ "context": {
6
+ "cookiecutter": {
7
+ "project_name": "annbatch",
8
+ "package_name": "annbatch",
9
+ "project_description": "A minibatch loader for AnnData stores",
10
+ "author_full_name": "Ilan Gold",
11
+ "author_email": "ilan.gold@scverse.org",
12
+ "github_user": "scverse",
13
+ "github_repo": "annbatch",
14
+ "license": "MIT License",
15
+ "ide_integration": true,
16
+ "_copy_without_render": [
17
+ ".github/workflows/build.yaml",
18
+ ".github/workflows/test.yaml",
19
+ "docs/_templates/autosummary/**.rst"
20
+ ],
21
+ "_exclude_on_template_update": [
22
+ "CHANGELOG.md",
23
+ "LICENSE",
24
+ "README.md",
25
+ "docs/api.md",
26
+ "docs/index.md",
27
+ "docs/notebooks/example.ipynb",
28
+ "docs/references.bib",
29
+ "docs/references.md",
30
+ "src/**",
31
+ "tests/**"
32
+ ],
33
+ "_render_devdocs": false,
34
+ "_jinja2_env_vars": {
35
+ "lstrip_blocks": true,
36
+ "trim_blocks": true
37
+ },
38
+ "_template": "https://github.com/scverse/cookiecutter-scverse",
39
+ "_commit": "d383d94fadff9e4e6fdb59d77c68cb900d7cedec"
40
+ }
41
+ },
42
+ "directory": null
43
+ }
@@ -0,0 +1,15 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 4
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [{*.{yml,yaml,toml},.cruft.json}]
12
+ indent_size = 2
13
+
14
+ [Makefile]
15
+ indent_style = tab
@@ -0,0 +1,94 @@
1
+ name: Bug report
2
+ description: Report something that is broken or incorrect
3
+ labels: bug
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
9
+ detailing how to provide the necessary information for us to reproduce your bug. In brief:
10
+ * Please provide exact steps how to reproduce the bug in a clean Python environment.
11
+ * In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
12
+ * Sometimes it is not possible to share the data, but usually it is possible to replicate problems on publicly
13
+ available datasets or to share a subset of your data.
14
+
15
+ - type: textarea
16
+ id: report
17
+ attributes:
18
+ label: Report
19
+ description: A clear and concise description of what the bug is.
20
+ validations:
21
+ required: true
22
+
23
+ - type: textarea
24
+ id: versions
25
+ attributes:
26
+ label: Versions
27
+ description: |
28
+ Which version of packages.
29
+
30
+ Please install `session-info2`, run the following command in a notebook,
31
+ click the “Copy as Markdown” button, then paste the results into the text box below.
32
+
33
+ ```python
34
+ In[1]: import session_info2; session_info2.session_info(dependencies=True)
35
+ ```
36
+
37
+ Alternatively, run this in a console:
38
+
39
+ ```python
40
+ >>> import session_info2; print(session_info2.session_info(dependencies=True)._repr_mimebundle_()["text/markdown"])
41
+ ```
42
+ render: python
43
+ placeholder: |
44
+ anndata 0.11.3
45
+ ---- ----
46
+ charset-normalizer 3.4.1
47
+ coverage 7.7.0
48
+ psutil 7.0.0
49
+ dask 2024.7.1
50
+ jaraco.context 5.3.0
51
+ numcodecs 0.15.1
52
+ jaraco.functools 4.0.1
53
+ Jinja2 3.1.6
54
+ sphinxcontrib-jsmath 1.0.1
55
+ sphinxcontrib-htmlhelp 2.1.0
56
+ toolz 1.0.0
57
+ session-info2 0.1.2
58
+ PyYAML 6.0.2
59
+ llvmlite 0.44.0
60
+ scipy 1.15.2
61
+ pandas 2.2.3
62
+ sphinxcontrib-devhelp 2.0.0
63
+ h5py 3.13.0
64
+ tblib 3.0.0
65
+ setuptools-scm 8.2.0
66
+ more-itertools 10.3.0
67
+ msgpack 1.1.0
68
+ sparse 0.15.5
69
+ wrapt 1.17.2
70
+ jaraco.collections 5.1.0
71
+ numba 0.61.0
72
+ pyarrow 19.0.1
73
+ pytz 2025.1
74
+ MarkupSafe 3.0.2
75
+ crc32c 2.7.1
76
+ sphinxcontrib-qthelp 2.0.0
77
+ sphinxcontrib-serializinghtml 2.0.0
78
+ zarr 2.18.4
79
+ asciitree 0.3.3
80
+ six 1.17.0
81
+ sphinxcontrib-applehelp 2.0.0
82
+ numpy 2.1.3
83
+ cloudpickle 3.1.1
84
+ sphinxcontrib-bibtex 2.6.3
85
+ natsort 8.4.0
86
+ jaraco.text 3.12.1
87
+ setuptools 76.1.0
88
+ Deprecated 1.2.18
89
+ packaging 24.2
90
+ python-dateutil 2.9.0.post0
91
+ ---- ----
92
+ Python 3.13.2 | packaged by conda-forge | (main, Feb 17 2025, 14:10:22) [GCC 13.3.0]
93
+ OS Linux-6.11.0-109019-tuxedo-x86_64-with-glibc2.39
94
+ Updated 2025-03-18 15:47
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Scverse Community Forum
4
+ url: https://discourse.scverse.org/
5
+ about: If you have questions about “How to do X”, please ask them here.
@@ -0,0 +1,11 @@
1
+ name: Feature request
2
+ description: Propose a new feature for annbatch
3
+ labels: enhancement
4
+ body:
5
+ - type: textarea
6
+ id: description
7
+ attributes:
8
+ label: Description of feature
9
+ description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
10
+ validations:
11
+ required: true
@@ -0,0 +1,33 @@
1
+ name: Check Build
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ defaults:
14
+ run:
15
+ # to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
16
+ shell: bash -euo pipefail {0}
17
+
18
+ jobs:
19
+ package:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ with:
24
+ filter: blob:none
25
+ fetch-depth: 0
26
+ - name: Install uv
27
+ uses: astral-sh/setup-uv@v5
28
+ with:
29
+ cache-dependency-glob: pyproject.toml
30
+ - name: Build package
31
+ run: uv build
32
+ - name: Check package
33
+ run: uvx twine check --strict dist/*.whl
@@ -0,0 +1,34 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ defaults:
8
+ run:
9
+ # to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
10
+ shell: bash -euo pipefail {0}
11
+
12
+ # Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
13
+ jobs:
14
+ release:
15
+ name: Upload release to PyPI
16
+ runs-on: ubuntu-latest
17
+ environment:
18
+ name: pypi
19
+ url: https://pypi.org/p/annbatch
20
+ permissions:
21
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ with:
25
+ filter: blob:none
26
+ fetch-depth: 0
27
+ - name: Install uv
28
+ uses: astral-sh/setup-uv@v5
29
+ with:
30
+ cache-dependency-glob: pyproject.toml
31
+ - name: Build package
32
+ run: uv build
33
+ - name: Publish package distributions to PyPI
34
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,102 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ defaults:
13
+ run:
14
+ # to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
15
+ shell: bash -euo pipefail {0}
16
+
17
+ jobs:
18
+ # Get the test environment from hatch as defined in pyproject.toml.
19
+ # This ensures that the pyproject.toml is the single point of truth for test definitions and the same tests are
20
+ # run locally and on continuous integration.
21
+ # Check [[tool.hatch.envs.hatch-test.matrix]] in pyproject.toml and https://hatch.pypa.io/latest/environment/ for
22
+ # more details.
23
+ get-environments:
24
+ runs-on: ubuntu-latest
25
+ outputs:
26
+ envs: ${{ steps.get-envs.outputs.envs }}
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ with:
30
+ filter: blob:none
31
+ fetch-depth: 0
32
+ - name: Install uv
33
+ uses: astral-sh/setup-uv@v5
34
+ - name: Get test environments
35
+ id: get-envs
36
+ run: |
37
+ ENVS_JSON=$(uvx hatch env show --json | jq -c 'to_entries
38
+ | map(
39
+ select(.key | startswith("hatch-test"))
40
+ | {
41
+ name: .key,
42
+ label: (if (.key | contains("pre")) then .key + " (PRE-RELEASE DEPENDENCIES)" else .key end),
43
+ python: .value.python
44
+ }
45
+ )')
46
+ echo "envs=${ENVS_JSON}" | tee $GITHUB_OUTPUT
47
+
48
+ # Run tests through hatch. Spawns a separate runner for each environment defined in the hatch matrix obtained above.
49
+ test:
50
+ needs: get-environments
51
+
52
+ strategy:
53
+ fail-fast: false
54
+ matrix:
55
+ os: [ubuntu-latest]
56
+ env: ${{ fromJSON(needs.get-environments.outputs.envs) }}
57
+
58
+ name: ${{ matrix.env.label }}
59
+ runs-on: ${{ matrix.os }}
60
+
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+ with:
64
+ filter: blob:none
65
+ fetch-depth: 0
66
+ - name: Install uv
67
+ uses: astral-sh/setup-uv@v5
68
+ with:
69
+ python-version: ${{ matrix.env.python }}
70
+ cache-dependency-glob: pyproject.toml
71
+ - name: create hatch environment
72
+ run: uvx hatch env create ${{ matrix.env.name }}
73
+ - name: run tests using hatch
74
+ env:
75
+ MPLBACKEND: agg
76
+ PLATFORM: ${{ matrix.os }}
77
+ DISPLAY: :42
78
+ run: uvx hatch run ${{ matrix.env.name }}:run-cov -v --color=yes -n auto
79
+ - name: generate coverage report
80
+ run: |
81
+ # See https://coverage.readthedocs.io/en/latest/config.html#run-patch
82
+ test -f .coverage || uvx hatch run ${{ matrix.env.name }}:cov-combine
83
+ uvx hatch run ${{ matrix.env.name }}:cov-report # report visibly
84
+ uvx hatch run ${{ matrix.env.name }}:coverage xml # create report for upload
85
+ - name: Upload coverage
86
+ uses: codecov/codecov-action@v5
87
+ with:
88
+ token: ${{ secrets.CODECOV_TOKEN }}
89
+
90
+ # Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
91
+ # protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
92
+ check:
93
+ name: Tests pass in all hatch environments
94
+ if: always()
95
+ needs:
96
+ - get-environments
97
+ - test
98
+ runs-on: ubuntu-latest
99
+ steps:
100
+ - uses: re-actors/alls-green@release/v1
101
+ with:
102
+ jobs: ${{ toJSON(needs) }}
@@ -0,0 +1,22 @@
1
+ # Temp files
2
+ .DS_Store
3
+ *~
4
+ buck-out/
5
+
6
+ # Compiled files
7
+ venv/
8
+ .venv/
9
+ __pycache__/
10
+ .*cache/
11
+
12
+ # Distribution / packaging
13
+ /dist/
14
+
15
+ # Tests and coverage
16
+ /data/
17
+ /node_modules/
18
+ /.coverage*
19
+
20
+ # docs
21
+ /docs/generated/
22
+ /docs/_build/
@@ -0,0 +1,38 @@
1
+ fail_fast: false
2
+ default_language_version:
3
+ python: python3
4
+ default_stages:
5
+ - pre-commit
6
+ - pre-push
7
+ minimum_pre_commit_version: 2.16.0
8
+ repos:
9
+ - repo: https://github.com/biomejs/pre-commit
10
+ rev: v2.2.4
11
+ hooks:
12
+ - id: biome-format
13
+ exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
14
+ - repo: https://github.com/tox-dev/pyproject-fmt
15
+ rev: v2.6.0
16
+ hooks:
17
+ - id: pyproject-fmt
18
+ - repo: https://github.com/astral-sh/ruff-pre-commit
19
+ rev: v0.13.2
20
+ hooks:
21
+ - id: ruff-check
22
+ types_or: [python, pyi, jupyter]
23
+ args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes]
24
+ - id: ruff-format
25
+ types_or: [python, pyi, jupyter]
26
+ - repo: https://github.com/pre-commit/pre-commit-hooks
27
+ rev: v6.0.0
28
+ hooks:
29
+ - id: detect-private-key
30
+ - id: check-ast
31
+ - id: end-of-file-fixer
32
+ - id: mixed-line-ending
33
+ args: [--fix=lf]
34
+ - id: trailing-whitespace
35
+ - id: check-case-conflict
36
+ # Check that there are no merge conflicts (could be generated by template sync)
37
+ - id: check-merge-conflict
38
+ args: [--assume-in-merge]
@@ -0,0 +1,15 @@
1
+ # https://docs.readthedocs.io/en/stable/config-file/v2.html
2
+ version: 2
3
+ build:
4
+ os: ubuntu-24.04
5
+ tools:
6
+ python: "3.14"
7
+ jobs:
8
+ create_environment:
9
+ - asdf plugin add uv
10
+ - asdf install uv latest
11
+ - asdf global uv latest
12
+ build:
13
+ html:
14
+ - uvx hatch run docs:build
15
+ - mv docs/_build $READTHEDOCS_OUTPUT
@@ -0,0 +1,18 @@
1
+ {
2
+ "recommendations": [
3
+ // GitHub integration
4
+ "github.vscode-github-actions",
5
+ "github.vscode-pull-request-github",
6
+ // Language support
7
+ "ms-python.python",
8
+ "ms-python.vscode-pylance",
9
+ "ms-toolsai.jupyter",
10
+ "tamasfe.even-better-toml",
11
+ // Dependency management
12
+ "ninoseki.vscode-mogami",
13
+ // Linting and formatting
14
+ "editorconfig.editorconfig",
15
+ "charliermarsh.ruff",
16
+ "biomejs.biome",
17
+ ],
18
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Python: Build Documentation",
9
+ "type": "debugpy",
10
+ "request": "launch",
11
+ "module": "sphinx",
12
+ "args": ["-M", "html", ".", "_build"],
13
+ "cwd": "${workspaceFolder}/docs",
14
+ "console": "internalConsole",
15
+ "justMyCode": false,
16
+ },
17
+ {
18
+ "name": "Python: Debug Test",
19
+ "type": "debugpy",
20
+ "request": "launch",
21
+ "program": "${file}",
22
+ "purpose": ["debug-test"],
23
+ "console": "internalConsole",
24
+ "justMyCode": false,
25
+ "env": {
26
+ "PYTEST_ADDOPTS": "--color=yes",
27
+ },
28
+ "presentation": {
29
+ "hidden": true,
30
+ },
31
+ },
32
+ ],
33
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "[python][json][jsonc]": {
3
+ "editor.formatOnSave": true,
4
+ },
5
+ "[python]": {
6
+ "editor.defaultFormatter": "charliermarsh.ruff",
7
+ "editor.codeActionsOnSave": {
8
+ "source.fixAll": "always",
9
+ "source.organizeImports": "always",
10
+ },
11
+ },
12
+ "[json][jsonc]": {
13
+ "editor.defaultFormatter": "biomejs.biome",
14
+ },
15
+ "python.analysis.typeCheckingMode": "basic",
16
+ "python.testing.pytestEnabled": true,
17
+ "python.testing.pytestArgs": ["-vv", "--color=yes"],
18
+ }
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog][],
6
+ and this project adheres to [Semantic Versioning][].
7
+
8
+ [keep a changelog]: https://keepachangelog.com/en/1.0.0/
9
+ [semantic versioning]: https://semver.org/spec/v2.0.0.html
10
+
11
+ ## [0.0.2]
12
+
13
+ ### Breaking
14
+
15
+ - `ZarrSparseDataset` and `ZarrDenseDataset` have been conslidated into {class}`annbatch.Loader`
16
+ - `create_anndata_collection` and `add_to_collection` have been moved into the {meth}`annbatch.DatasetCollection.add_adatas` method
17
+ - Default reading of input data is now fully lazy in {meth}`annbatch.DatasetCollection.add_adatas`, and therefore the shuffle process may now be slower although have better memory properties. Use `load_adata` argument in {meth}`annbatch.DatasetCollection.add_adatas` to customize this behavior.
18
+
19
+ ### Changed
20
+
21
+ - `preload_to_gpu` now depends on whether `cupy` is installed instead of defaulting to `True`
22
+
23
+ ## [0.0.1]
24
+
25
+ ### Added
26
+
27
+ - First release
annbatch-0.0.2/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025, Ilan Gold
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.