Skip to content

Return error on attempt to set chunking on scalar var#1662

Merged
WardF merged 4 commits intoUnidata:masterfrom
NOAA-GSD:ejh_scalar_chunking
Mar 6, 2020
Merged

Return error on attempt to set chunking on scalar var#1662
WardF merged 4 commits intoUnidata:masterfrom
NOAA-GSD:ejh_scalar_chunking

Conversation

@edwardhartnett
Copy link
Copy Markdown
Contributor

Fixes #1644

Also updated documentation to note that nc_def_var_deflate, nc_def_var_filter cannot be used on scalar vars.

@edwardhartnett edwardhartnett requested a review from WardF as a code owner March 6, 2020 16:56
@edwardhartnett
Copy link
Copy Markdown
Contributor Author

edwardhartnett commented Mar 6, 2020

@WardF thanks for the quick merges! Here's the next round of changes.

Note that this change does change library behavior, though hopefully in a way no user will experience. Attempts to set chunking on scalar vars used to be ignored, after this, that will return error. Similarly, previous code used to ignore attempts to set deflate on a scalar var, now that will return an error as well.

Once this is merged I have several more ready to go, including the HDF5-1.20.0 changes. ;-)

@WardF WardF self-assigned this Mar 6, 2020
@WardF WardF added this to the 4.7.4 milestone Mar 6, 2020
@WardF
Copy link
Copy Markdown
Member

WardF commented Mar 6, 2020

No problem! Thanks!

@WardF WardF merged commit 34c3b85 into Unidata:master Mar 6, 2020
@edwardhartnett edwardhartnett deleted the ejh_scalar_chunking branch March 7, 2020 11:57
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.

nc_def_var_chunking() currently ignores attempts to set chunking or filters on a scalar var - but should return error

2 participants