Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use _data instead of data for decode_cf_variable #41

Merged
merged 2 commits into from
Mar 3, 2014
Merged

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Mar 3, 2014

This was causing data to be loaded (e.g., from remote servers) when decoding CF variables.

@akleeman Hopefully this fixes your immediate problem? I wonder if we could write some sort of test to verify that the data is being loaded lazily...

Also reduced the number of time-points in test_dataset.create_test_data from
1000 to 20 to speedup encoding/decoding tests.
akleeman added a commit that referenced this pull request Mar 3, 2014
Use _data instead of data for decode_cf_variable
@akleeman akleeman merged commit 3ae636d into master Mar 3, 2014
@shoyer shoyer deleted the lazy-decode branch March 3, 2014 23:45
keewis pushed a commit to keewis/xarray that referenced this pull request Jan 17, 2024
* sketching out changes needed to integrate variables into DataTree

* fixed some other basic conflicts

* fix mypy errors

* can create basic datatree node objects again

* child-variable name collisions dectected correctly

* in-progres

* add _replace method

* updated tests to assert identical instead of check .ds is expected_ds

* refactor .ds setter to use _replace

* refactor init to use _replace

* refactor test tree to avoid init

* attempt at copy methods

* rewrote implementation of .copy method

* xfailing test for deepcopying

* pseudocode implementation of DatasetView

* Revert "pseudocode implementation of DatasetView"

This reverts commit 52ef23baaa4b6892cad2d69c61b43db831044630.

* removed duplicated implementation of copy

* reorganise API docs

* expose data_vars, coords etc. properties

* try except with calculate_dimensions private import

* add keys/values/items methods

* don't use has_data when .variables would do

* explanation of basic properties

* add data structures page to index

* revert adding documentation in favour of that going in a different PR

* correct deepcopy tests

* use .data_vars in copy tests

* make imports depend on most recent version of xarray

Co-authored-by: Mattia Almansi <m.almansi@bopen.eu>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove try except for internal import

* depend on latest pre-release of xarray

* correct name of version

* xarray pre-release under pip in ci envs

* correct methods

* whatsnews

* improve docstrings

Co-authored-by: Mattia Almansi <m.almansi@bopen.eu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants