-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow specification of dims instead of shape (#3551)
* Allow specification of dims instead of shape * Add pm.TidyData * Create coords for pm.Data(ndarray) * empty commit to trigger CI * Apply suggestions from code review Co-authored-by: Alexandre ANDORRA <andorra.alexandre@gmail.com> * apply black formatting * address review comments & formatting * Add demonstration of named coordinates/dims * don't require dim names to be identifiers * sort imports * raise ShapeError instead of ValueError * formatting * robustify Dtype and ShapeError * Removed TidyData and refined dims and coords implementation * Changed name of kwarg export_dims and improved docstrings * Add link to ArviZ in docstrings * Removed TidyData from __all__ * Polished Data container NB * Fixed line break in data.py * Fix inference of coords for dataframes * Refined Data container NB * Updated getting started NB with new dims and coords features * Reran getting started NB * Blackified NBs * rerun with ArviZ branch * use np.shape to be compatible with tuples/lists * add tests for named coordinate handling * Extended tests for data container Co-authored-by: Michael Osthege <m.osthege@fz-juelich.de> Co-authored-by: Michael Osthege <michael.osthege@outlook.com> Co-authored-by: Alexandre ANDORRA <andorra.alexandre@gmail.com>
- Loading branch information
1 parent
8a8beab
commit 76f3a7b
Showing
9 changed files
with
2,375 additions
and
728 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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.