-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement Dataset and InferenceData using DimensionalData (#191)
* Add DimensionalData as dependency * Create lookup for group order * Implement Dataset using DimensionalData * Remove methods defined in DimensionalData * Deprecate indexing with strings * Fix show method * Simplify dataset_to_dict implementation * Implement converters to/from xarray * Add accessor for wrapped data * Update attribute get/setters * Fix deprecation of indexing * Deprecate using a string for group name * Remove xarray designations * Document non-allocating behavior * Implement InferenceData as wrapping a dict of Datasets * Update group accessors * Update property accessors * Remove redundant constructors * Update function implementations * Add hasgroup * Deprecate addition of InferenceData * Add converters to/from xarray * Remove reference to xarray * Implement merge and merge! * Replace concat! with merge! * Don't use deprecated method * Update diagnostics tests * Increment version number * Increment ArviZ version * Remove deprecation * Don't use xarray html reprs * Add back plaintext show method * Make sure strings are mapped to symbols * Let strings be strings * Convert dims to range if possible * Use namedtuple backing for InferenceData * Make Dataset just wrap an AbstractDimStack * Don't automatically convert xarray to Dataset * Don't assume InferenceData is mutable * Correctly convert mixed type arrays * Move xarray code to its own file * Collect Python interop at the end of file * Collect dimensionaldata code * Fix conversion from PyObject * Work around filter not being implemented for NamedTuple * Avoid using entire DimensionalData namespace * Export Dataset * Revert "Export Dataset" This reverts commit a3aa171. * Update dataset construction tests * Fix rebuild overload * Remove getindex * Reorganize convert methods * Add and fix more tests * Add and repair tests * Use DimensionalData.index * Add DimensionalData to test suite * Test Dataset to/from xarray conversion * Update convert_to_dataset tests * Use tuple method of index * Generalize processing of python arrays * Use issetequal * Update convert_to_constant_dataset tests * Update remaining dataset tests * Make dataset tests a single testset * Repair dataset_to_dict * Run formatter * Allow accessing variables with properties * Rename varname to var_name * Implement indexing and iteration interfaces * Get all supported groups * Make iteration type inferrable * Update many InferenceData tests * Run formatter * Update many tests * Update conversion tests * Remove addition of InferenceDatas * Test conversion to Python * Add helper function to check idatas are equal * Add dependencies * Define default sample dims * Define namedtuple_to_dataset * Implement convert_to_inference_data * Implement package_version * Add simpler forms of rekey * Use OrderedDict and add/get metadata to/from arrays * Fix InferenceData docstring * Update concat test * Update helpers * Add schema check * Fix broken tests * Run formatter * Test namedtuple_to_dataset * Actually use convert_to_dataset * Update from_namedtuple * Update docstrings * Add broken test for inferrability * Make sure dims and coords default to NamedTuple * Update MCMCChains converter * Update tests * Remove dead code * Make NamedTuple * Update docstrings * Update test dependencies * Mark as dev release * Update mpl_examples.md * Update quickstart.jl * Always pass an array * Don't send a NamedTuple to Python * Run formatter * Update storage documentation * Avoid patterns that poorly convert to Python types * Revert back to String * Reduce indentation in REPL display of InferenceData * Convert special arrays to raw arrays for plot_kde * Test package_version * Remove outdated reference to convert_to_constant_dataset * Fix typo * Fix typo * Don't export undefined function * Remove concat! from API docs * Make tests work for Julia 1.6 * Avoid setting dims and coords unless defined * Remove unused function * Merge PyObject conversion functions * Don't drop directly to Python * Add missing tests * Test default_var_name * Generalize convert function * Add missing tests * Test using type for dimension * Test prior_predictive as Chains * Add missing tests * Repair rekey for Dict
- Loading branch information
Showing
28 changed files
with
1,469 additions
and
1,121 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
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
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
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
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.