xarray-einstats

Stats, linear algebra and einops for xarray

https://github.com/arviz-devs/xarray-einstats

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.2%) to scientific vocabulary

Keywords

einsum linear-algebra numpy python scipy scipy-stats xarray xarray-extension

Keywords from Contributors

closember bayesian-statistics optimizing-compiler probability-distribution prior-elicitation prior-distribution bayesian-data-analysis network-simulation hacking wx
Last synced: 6 months ago · JSON representation ·

Repository

Stats, linear algebra and einops for xarray

Basic Info
Statistics
  • Stars: 67
  • Watchers: 12
  • Forks: 7
  • Open Issues: 2
  • Releases: 13
Topics
einsum linear-algebra numpy python scipy scipy-stats xarray xarray-extension
Created about 4 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

xarray-einstats

Documentation Status Run tests codecov PyPI Conda Version DOI

Stats, linear algebra and einops for xarray

Installation

To install, run

(.venv) $ pip install xarray-einstats

See the docs for more extensive install instructions.

Overview

As stated in their website:

xarray makes working with multi-dimensional labeled arrays simple, efficient and fun!

The code is often more verbose, but it is generally because it is clearer and thus less error prone and more intuitive. Here are some examples of such trade-off where we believe the increased clarity is worth the extra characters:

| numpy | xarray | |---------|----------| | a[2, 5] | da.sel(drug="paracetamol", subject=5) | | a.mean(axis=(0, 1)) | da.mean(dim=("chain", "draw")) | | a.reshape((-1, 10)) | da.stack(sample=("chain", "draw")) | | a.transpose(2, 0, 1) | da.transpose("drug", "chain", "draw") |

In some other cases however, using xarray can result in overly verbose code that often also becomes less clear. xarray_einstats provides wrappers around some numpy and scipy functions (mostly numpy.linalg and scipy.stats) and around einops with an api and features adapted to xarray. Continue at the getting started page.

Contributing

xarray-einstats is in active development and all types of contributions are welcome! See the contributing guide for details on how to contribute.

Relevant links

  • Documentation: https://einstats.python.arviz.org/en/latest/
  • Contributing guide: https://einstats.python.arviz.org/en/latest/contributing/overview.html
  • ArviZ project website: https://www.arviz.org

Similar projects

Here we list some similar projects we know of. Note that all of them are complementary and don't overlap: * xr-scipy * xarray-extras * xhistogram * xrft

Cite xarray-einstats

If you use this software, please cite it using the following template and the version specific DOI provided by Zenodo. Click on the badge to go to the Zenodo page and select the DOI corresponding to the version you used DOI

  • Oriol Abril-Pla. (2022). arviz-devs/xarray-einstats <version>. Zenodo. <version_doi>

or in bibtex format:

none @software{xarray_einstats2022, author = {Abril-Pla, Oriol}, title = {{xarray-einstats}}, year = 2022, url = {https://github.com/arviz-devs/xarray-einstats} publisher = {Zenodo}, version = {<version>}, doi = {<version_doi>}, }

Owner

  • Name: ArviZ
  • Login: arviz-devs
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
title: xarray-einstats
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Oriol
    family-names: Abril-Pla
    email: oriol.abril.pla@gmail.com
    affiliation: Helsinki University
    orcid: 'https://orcid.org/0000-0002-1847-9481'
identifiers:
  - type: doi
    value: 10.5281/zenodo.5895451
    description: >-
      This is the collection of archived snapshots of
      all versions of xarray-einstats
repository-code: 'https://github.com/arviz-devs/xarray-einstats'
url: 'https://xarray-einstats.readthedocs.io'
keywords:
  - python
  - data science
  - statistics
  - labeled arrays
license: Apache-2.0
preferred-citation:
  type: software
  title: xarray-einstats
  authors:
  - family-names: Abril-Pla
    given-names: Oriol
    orcid: 'https://orcid.org/0000-0002-1847-9481'
  doi: 10.5281/zenodo.5895451
  url: 'https://github.com/arviz-devs/xarray-einstats'
  year: 2022
  publisher: Zenodo
  license: Apache-2.0

GitHub Events

Total
  • Create event: 3
  • Release event: 1
  • Issues event: 3
  • Watch event: 3
  • Delete event: 2
  • Issue comment event: 13
  • Push event: 5
  • Pull request review comment event: 1
  • Pull request review event: 3
  • Pull request event: 12
  • Fork event: 1
Last Year
  • Create event: 3
  • Release event: 1
  • Issues event: 3
  • Watch event: 3
  • Delete event: 2
  • Issue comment event: 13
  • Push event: 5
  • Pull request review comment event: 1
  • Pull request review event: 3
  • Pull request event: 12
  • Fork event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 92
  • Total Committers: 5
  • Avg Commits per committer: 18.4
  • Development Distribution Score (DDS): 0.098
Past Year
  • Commits: 10
  • Committers: 3
  • Avg Commits per committer: 3.333
  • Development Distribution Score (DDS): 0.6
Top Committers
Name Email Commits
Oriol Abril-Pla o****a@g****m 83
dependabot[bot] 4****] 4
Osvaldo Martin a****a@g****m 2
Christine P. Chai s****p@g****m 2
Manuel Kaufmann h****s@g****m 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 17
  • Total pull requests: 62
  • Average time to close issues: 3 months
  • Average time to close pull requests: 2 days
  • Total issue authors: 9
  • Total pull request authors: 5
  • Average comments per issue: 1.47
  • Average comments per pull request: 1.24
  • Merged pull requests: 60
  • Bot issues: 0
  • Bot pull requests: 6
Past Year
  • Issues: 3
  • Pull requests: 16
  • Average time to close issues: 4 months
  • Average time to close pull requests: about 13 hours
  • Issue authors: 3
  • Pull request authors: 3
  • Average comments per issue: 0.67
  • Average comments per pull request: 1.0
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 6
Top Authors
Issue Authors
  • OriolAbril (6)
  • yurivict (4)
  • jessegrabowski (1)
  • max-sixty (1)
  • kochuyt (1)
  • m00ngoose (1)
  • SomeoneSerge (1)
  • bnavigator (1)
  • aloctavodia (1)
Pull Request Authors
  • OriolAbril (49)
  • dependabot[bot] (10)
  • star1327p (5)
  • aloctavodia (2)
  • humitos (1)
Top Labels
Issue Labels
enhancement (1) help wanted (1)
Pull Request Labels
dependencies (10) github_actions (2)

Packages

  • Total packages: 3
  • Total downloads:
    • pypi 1,409,774 last-month
  • Total docker downloads: 95,801
  • Total dependent packages: 7
    (may contain duplicates)
  • Total dependent repositories: 349
    (may contain duplicates)
  • Total versions: 16
  • Total maintainers: 1
pypi.org: xarray-einstats

Stats, linear algebra and einops for xarray

  • Versions: 13
  • Dependent Packages: 5
  • Dependent Repositories: 339
  • Downloads: 1,409,774 Last month
  • Docker Downloads: 95,801
Rankings
Downloads: 0.4%
Dependent repos count: 0.8%
Docker downloads count: 1.1%
Average: 1.2%
Dependent packages count: 2.4%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: xarray-einstats
  • Versions: 2
  • Dependent Packages: 1
  • Dependent Repositories: 5
Rankings
Dependent repos count: 14.8%
Dependent packages count: 29.0%
Average: 36.1%
Stargazers count: 44.1%
Forks count: 56.4%
Last synced: 6 months ago
anaconda.org: xarray-einstats

xarray-einstats is an open source Python library part of the ArviZ project. It acts as a bridge between the xarray library for labelled arrays and libraries for raw arrays such as NumPy or SciPy.

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 5
Rankings
Dependent packages count: 30.6%
Dependent repos count: 43.1%
Average: 44.3%
Stargazers count: 47.7%
Forks count: 55.6%
Last synced: 6 months ago

Dependencies

.github/workflows/publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/rtd-link-preview.yml actions
  • readthedocs/actions/preview v1 composite
.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
pyproject.toml pypi
  • numpy >=1.21
  • scipy >=1.7
  • xarray >=2022.09.0