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

Should we deprecate the compat and encoding constructor arguments? #1188

Closed
jhamman opened this issue Dec 28, 2016 · 5 comments
Closed

Should we deprecate the compat and encoding constructor arguments? #1188

jhamman opened this issue Dec 28, 2016 · 5 comments

Comments

@jhamman
Copy link
Member

jhamman commented Dec 28, 2016

In #1170 (comment), @shoyer writes:

...I would consider deprecating the encoding argument to DataArray instead. It would also make sense to get rid of the compat argument to Dataset.

These extra arguments are not part of the fundamental xarray data model and thus are a little distracting, especially to new users.

@pydata/xarray and others, what do we think about deprecating the compat argument to the Dataset constructor and the encoding arguement to the DataArray (and Dataset via #1170).

@fmaussion
Copy link
Member

I don't have an opinion on compat (seems somehow unrelated to netCDF and #1170?), but I am +1 on encode. I always use encode when writing a dataset to disk, not at construction.

@clarkfitzg
Copy link
Member

I haven't used these arguments in the constructors. But I don't find them distracting either.

@stale
Copy link

stale bot commented Jan 24, 2019

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity
If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically

@stale stale bot added the stale label Jan 24, 2019
@max-sixty
Copy link
Collaborator

Compat is removed; is there a basis for keeping encoding?

@stale stale bot removed the stale label Jan 24, 2019
@shoyer
Copy link
Member

shoyer commented Jan 24, 2019

We still have compat as an argument to Dataset.__ini__.

I think we should probably deprecate it. I've never used it, and if you really want that high a level of control you can easily substitute using merge() instead.

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

No branches or pull requests

6 participants