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

h5close fails to update the file on disk #60

Open
dariomel opened this issue Sep 13, 2017 · 0 comments
Open

h5close fails to update the file on disk #60

dariomel opened this issue Sep 13, 2017 · 0 comments

Comments

@dariomel
Copy link

creating a new file that contains a data set and then calling h5close fails to update the file on disk:

library(h5)
f=h5file("bug.h5",'w')
f['a']=1:3
h5close(f)
system("/opt/apps/tools/hdf5-1.10.1/bin/h5dump bug.h5")
h5dump error: unable to open file "bug.h5"

The file appears to be updated correctly after quitting and restarting R,

system("/opt/apps/tools/hdf5-1.10.1/bin/h5dump bug.h5")
HDF5 "bug.h5" {
GROUP "/" {
   DATASET "a" {
      DATATYPE  H5T_STD_I32LE
      DATASPACE  SIMPLE { ( 3 ) / ( H5S_UNLIMITED ) }
      DATA {
      (0): 1, 2, 3
      }
   }
}
}

sessionInfo

sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS/LAPACK: /mnt/share/apps/tools/intel-2017_3/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin/libmkl_rt.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] h5_0.9.8

loaded via a namespace (and not attached):
[1] compiler_3.4.1 tools_3.4.1    Rcpp_0.12.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant