-
-
Notifications
You must be signed in to change notification settings - Fork 350
Fix for issue #6365 #6469
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
Open
vchoi-hdfgroup
wants to merge
8
commits into
HDFGroup:develop
Choose a base branch
from
vchoi-hdfgroup:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+61
−23
Open
Fix for issue #6365 #6469
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d774bb6
Fixes for issues: #6448, #6449, #6444
vchoi-hdfgroup 73de11a
Merge branch 'develop' into develop
hyoklee 5875c0b
Merge branch 'HDFGroup:develop' into develop
vchoi-hdfgroup bc6992a
Fix for issue #6443.
vchoi-hdfgroup b562fc3
Fix for issue #6365.
vchoi-hdfgroup 6a6346c
Merge branch 'HDFGroup:develop' into develop
vchoi-hdfgroup 19dc096
Fix spelling error.
vchoi-hdfgroup 5d6f78e
Modifications based on PR review comments.
vchoi-hdfgroup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these stay 0-based and instead "Dimension #n" below should be changed to n - 1? Otherwise, this seems to conflict with the text below that uses "(n - 1)" when referring to dimensions stored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at the field "dimensionality" description, "For chunked storage, the value stored is one greater than the dataset’s actual number of dimemsions. For example, a 1-dimensional dataset stores a value of 2. This increment accounts for the dataset element size which occupies the final dimension entry."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But assuming indices are still 0-based here, what's stored is the sizes for dimension 0..(n-1) and the dataset element size just happens to be an extra element in that "array".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you mentioned above conflicting with the text "(n-1)" which line are you referring to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this diff it's line 7700. That text pretty much states what I'd expect: For an n-dimensional dataset (for n >= 2), dimensions 0..(n-1) are stored and then the dataset element size is stored. The dataset element size is part of the dimensions "array", but it's not really a dimension itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So actually I should have the following:
In the layout table:
"Dimension 0 Size, Dimension 1 size,.... Dimension (n-1) size, Dataset element size"
And in the description table:
For chunked storage, the dimensions define the size of a single chunk. They are in units of array elements (not bytes). The first dimension stored in the list of dimensions is the slowest changing dimension and the (n - 1) dimension stored is the fastest changing dimension.
For an n-dimensional dataset (for n >= 2), dimensions 0..(n-1) are stored and then the dataset element size is stored. The dataset element size is part of the dimensions "array", but it's not really a dimension itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this part is what I think the layout table should say.
These were just my own words summarizing the encoding; I think the text currently in the description table in this diff is fine as is and you don't need to add these words.