-
Notifications
You must be signed in to change notification settings - Fork 143
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
Clean up Dataspaces #1104
Clean up Dataspaces #1104
Conversation
simonbyrne
commented
Sep 5, 2023
•
edited
Loading
edited
- define HDF5.UNLIMITED constant for unlimited values
- improve printing of Dataspace objects
- define Dataspace contructors, deprecate methods for dataspace functions (see Change use constructors instead of functions #1102)
There is a lot of reorganization here. Should this go into 0.17 or could it wait for 0.18? My sense is that 0.18 is months off rather than a year or two. |
If 0.17 is otherwise ready to go, then this can wait. One question is what should |
a94ebb8
to
caf143e
Compare
I'm not sure if this actually breaking or not, so perhaps it could be 0.17.1? |
The deprecations are breaking, so shouldn't go in a patch release. This is part of my effort to clean up some interfaces, so happy to wait for 0.18. |
6f4666b
to
a9815ca
Compare
Regarding the documentation, I would like to convert as many of the examples to |
4691186
to
dbe6bcb
Compare
- define HDF5.UNLIMITED constant for unlimited values - improve printing of Dataspace objects - define Dataspace contructors, deprecate methods for dataspace functions
I would like to have parity with |
The capitalization is different 😄? I guess we don't have to export it: by making |
Can you expand on what you mean by "I would like to have parity with HDF5.Datatype"? |
This package currently also exports If we are going to increase use of |
Oh, I understand. Yes, I think that would make sense: basically we would deprecate |
a486503
to
b11eb00
Compare
I think Perhaps the better strategy would be to focus on not requiring a How about this:
|
I'm happy with 1 & 3. For 2., I think it would be consistent to keep |
19bd547
to
8ebef2e
Compare
something really odd is going on with the We're getting an error in |
8ebef2e
to
6acd2ba
Compare
I saw the same error on Ubuntu. Do we have a race condition? |
Possibly, but I can't figure out exactly how. |
it could be something in HDF5 itself that isn't setting the error stack correctly? |
@mkitti any more thoughts on this? I'd like to make some more changes which depend on this. |
I just got back home. Could you give me until Monday noon PT to look it over? |
No problem! |
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.
A few minor thoughts:
- What is the relationship between the UNLIMITED constant in HDF5 and API modules?
- Should we support a symbol for unlimited?
- Should we preserve some of the legacy tests?
constructor or [`create_dataset`](@ref), or as a `count` argument in | ||
[`BlockRange`](@ref) when selecting virtual dataset mappings. | ||
""" | ||
const UNLIMITED = -1 |
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.
Could we also interpret a symbol, :unlimited
, for this purpose?
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.
We could. The question is what should size
return? Defining HDF5.UNLIMITED = -1
seemed like the easiest option to get backwards compatibility and type stability.
We could do, but the question is what should
I believe most of the tests should still be there, I just rearranged them a bit. |
I'm thinking about just merging this and moving on to 0.18 development. It's been a while. |