-
Notifications
You must be signed in to change notification settings - Fork 141
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
Expand DatasetAccessProperties coverage, add helpers #949
Conversation
The only missing dataset access property is This has a signature unlike the others. |
julia> dapl = HDF5.init!(HDF5.DatasetAccessProperties())
HDF5.DatasetAccessProperties(
chunk_cache = (nslots = 0x0000000000000209, nbytes = 0x0000000000100000, w0 = 0.75),
efile_prefix = "",
virtual_prefix = "",
virtual_printf_gap = 0x0000000000000000,
virtual_view = :last_available,
) |
src/api/helpers.jl
Outdated
@@ -411,6 +419,11 @@ function h5p_get_efile_prefix(plist) | |||
return String(buffer) | |||
end | |||
|
|||
function h5p_set_efile_prefix(plist, sym::Symbol) | |||
sym === :origin ? h5p_set_efile_prefix(plist, raw"$ORIGIN") : | |||
error("The only valid symbol for h5p_set_efile_prefix is :origin.") |
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.
throw(ArgumentError(....
?
This should be good to go for now. I think |
LGTM |
Expanded
DatasetAccessProperties
to coverchunk_cache
: Chunk cache parameters as (nslots, nbytes, w0).Default: (521, 0x100000, 0.75)
efile_prefix
: Path prefix for reading external files.The default is the current working directory.
:origin
: alias forraw"\$ORIGIN"
will make the external file relative tothe HDF5 file.
virtual_prefix
: Path prefix for reading virtual datasets.virtual_printf_gap
: The maximum number of missing source files and/ordatasets with the printf-style names when getting the extent of an unlimited
virtual dataset
virtual_view
: Influences whether the view of the virtual dataset includesor excludes missing mapped elements
:first_missing
: includes all data before the first missing mapped data:last_available
: includes all available mapped dataPending tasks: