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

Allow additional arguments to to_netcdf() methods #2298

Open
cluhmann opened this issue Dec 18, 2023 · 0 comments
Open

Allow additional arguments to to_netcdf() methods #2298

cluhmann opened this issue Dec 18, 2023 · 0 comments

Comments

@cluhmann
Copy link

I noticed that the signatures of the az.InferenceData.to_netcdf() method and the az.to_netcdf() methods are not entirely aligned. For example, az.InferenceData.to_netcdf() takes a boolean compress argument which is absent in the az.to_netcdf() method. So the first request is to align these two methods so that they match.

More generally, however, there are a variety of kwargs that xarray.Dataset.to_netcdf() method accepts that are not accepted by the arviz methods. For example, there is the encoding argument that allows for much finer-grained control over the compression encoding parameters. Things might get a bit tricky when allowing a detailed specification that could, in principle, conflict with some of the arviz-provided arguments. But it might be nice to expose whatever is feasible.

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

1 participant