Menu

#10 Cannot override dataset name

1.0
open
None
2014-08-21
2014-05-06
No

My NeXus file has the top-level group name "entry" but I cannot override it:

evaluating: {
setInputData("/home/wozniak/nexus-data/pznpt.nxs#entry")
}
Set input data to /home/wozniak/nexus-data/pznpt.nxs#entry
inputData:setDataSource("/home/wozniak/nexus-data/pznpt.nxs#entry")
scheme:
host:
path: /home/wozniak/nexus-data/pznpt.nxs
query:
fragment: entry
About to open input file: /home/wozniak/nexus-data/pznpt.nxs dataset: data
HDF5 Error occurred
../../../src/H5D.c:334 : not found
../../../src/H5Gloc.c:430 : can't find object
../../../src/H5Gtraverse.c:861 : internal path traversal failed
../../../src/H5Gtraverse.c:641 : traversal operator failed
../../../src/H5Gloc.c:385 : object 'data' doesn't exist
HDF5 Error occurred

Discussion

  • Guy Jennings

    Guy Jennings - 2014-05-06

    I'm not sure what is going on here - one problem is that the code is expecting the name of a data object, not a group, so you'd want something like
    pznpt.nxs#entry/data/v

     
  • Guy Jennings

    Guy Jennings - 2014-05-06

    You might also try a leading slash before entry -

    pznpts.nxs#/entry/data/v

     
  • Justin M Wozniak

    Thanks- I did not know HDF would accept the whole path in one string

     
  • Justin M Wozniak

    I think this issue is caused by CctwChunkedData::onDataFileNameChanged(), which opens the file before I have a chance to change its name.

     

Log in to post a comment.