Skip to content

Commit

Permalink
Disable all timestamps during HDF5 dataset creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Dec 13, 2023
1 parent 80d7d5b commit bf77b42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/saveArray.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ h5_write_array <- function(handle, name, x, type, placeholder, extract.native=NU

phandle <- H5Pcreate("H5P_DATASET_CREATE")
on.exit(H5Pclose(phandle), add=TRUE, after=FALSE)
H5Pset_fill_time(phandle, "H5D_FILL_TIME_ALLOC")
H5Pset_fill_time(phandle, "H5D_FILL_TIME_NEVER")
H5Pset_obj_track_times(phandle, FALSE)

if (!is.null(compress) && compress > 0 && length(x)) {
H5Pset_deflate(phandle, level=compress)
Expand Down

0 comments on commit bf77b42

Please sign in to comment.