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 PUT shape to reduce extent #266

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Allow PUT shape to reduce extent #266

merged 1 commit into from
Oct 10, 2023

Conversation

jreadey
Copy link
Member

@jreadey jreadey commented Oct 6, 2023

Enable PUT shape to reduce extent
Also - fix errors showing up in async process.

@jreadey jreadey requested a review from mattjala October 6, 2023 02:36
# H5D_COMPACT and H5D_CONTIGUOUS will not have a dims key
# Check the layout dict in dset_json to see if it's
# defined there
if "layout" in dset_json:
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this section redundant, since getDatasetLayout already checks for a layout directly in dset_json?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a bit hacky - the getDatasetLayout returns either the layout in CreationProperties or the layout key in dset_json. The idea is that the CreationProperties is just what the client passed in on POST dataset where the layout in dset_json is the actual layout used (e.g. HSDS may decide to use a larger chunksize). In the case here, we don't want CONTIGUOUS or COMPACT, so get dset_json["layout"] if that's the case.

mattjala
mattjala previously approved these changes Oct 6, 2023
@mattjala mattjala dismissed their stale review October 6, 2023 19:14

Wrong data when re-increasing size

@mattjala
Copy link
Contributor

mattjala commented Oct 6, 2023

After decreasing and then increasing size, the new positions in the dataset should have a value equal to fill value, not whatever was written there before the size was decreased. See the modified test in #267

@mattjala mattjala self-assigned this Oct 9, 2023
@jreadey jreadey merged commit f97455d into master Oct 10, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants