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

Add unlim dims for h5netcdf #1637

Merged
merged 2 commits into from
Oct 18, 2017
Merged

Add unlim dims for h5netcdf #1637

merged 2 commits into from
Oct 18, 2017

Conversation

jhamman
Copy link
Member

@jhamman jhamman commented Oct 17, 2017

(these tests will fail until conda-forge get's an updated version of h5netcdf)

Copy link
Member

@shoyer shoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, you are fast! :)

Updated h5netcdf should already be out on conda-forge.

if unlimited_dims is not None:
warnings.warn('h5netcdf does not support unlimited dimensions, '
'got: %s.' % unlimited_dims)
unlimited_dims = None
self.set_necessary_dimensions(variable, unlimited_dims=unlimited_dims)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will need to set dimensions to their current size explicitly with resize_dimension(). h5netcdf doesn't support automatic enlargement with assignment yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that makes sense. I was wondering where that belonged.

@jhamman jhamman changed the title initial commit adding unlim dims for h5netcdf Add unlim dims for h5netcdf Oct 18, 2017
@jhamman
Copy link
Member Author

jhamman commented Oct 18, 2017

@shoyer - all tests are passing here. The resize issue required a small refactor of the set_dimension method in the scipy/netcdf4 backends.

@jhamman jhamman merged commit 4c3c332 into pydata:master Oct 18, 2017
@jhamman jhamman deleted the feature/h5netcdf_unlim_dims branch October 18, 2017 19:56
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.

2 participants