Skip to content
Prev 9030 / 21312 Next

[Bioc-devel] rhdf5 and left-justified output in h5ls - is this sensible?

Dear List, Bernd;

I've noticed that h5ls now left-justifies its output. For example, if I 
were to run example(h5ls) on my BioC-devel system, I would get:
... whereas if I run it on release, I would get:
Now, my problem is that I use h5ls to determine what data substructures 
are available in a particular *.h5 file, and how I should load them with 
h5read. I can do this on release:

 > x <- h5ls("ex_ls_dump.h5",all=TRUE)
 > h5read("ex_ls_dump.h5", file.path(x$group[2], x$name[2]))
# gives me the data under /foo/B

... but not on BioC-devel:

 > Error in h5read("ex_ls_dump.h5", file.path(x$group[2], x$name[2])) :
 >   Object /foo/B      does not exist in this HDF5 file.

... due to the extra spaces. Suffice to say that it was a rather 
unpleasant surprise to get at 2am in the morning!

I can't see any purpose of the left-justification except for aesthetics. 
Is it sensible to compromise the expected behaviour of the function just 
to make its output look pretty?

Here's the session information for my devel build:
... and again, for release:
Cheers,

Aaron