bugGNU Octave - Bugs: bug #35227, HDF5 h5ex_t_vlstring.h5 can't be...

 
 

bug #35227: HDF5 h5ex_t_vlstring.h5 can't be loaded

Submitted by:  None
Submitted on:  Tue Jan 3 14:32:54 2012  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: DuplicateAssigned to: None
Originator Name: ErichOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri Nov 18 20:43:40 2016, comment #4:

This will be handled by the h5read function, which will be able to read arbitrary HDF5 data files into an Octave data structure.

See patch #8607. Closing as a duplicate of that open patch, which is awaiting review to be merged into Octave.

Mike Miller <mtmiller>
Project Administrator
Thu Jan 5 10:26:10 2012, comment #3:

*)When you do not like bug call it feature
request.

*)What could I do when I want to put an unsupported
hdf variable to octave?

*)At least the h5ex_t_string.h5 should either load
correctly or an warning that a dataset could not
load should be presented.

Erich

Anonymous
Thu Jan 5 05:25:21 2012, comment #2:

Octave's load command is supposed to be able to load HDF files saved by Octave's save command. It was not designed to load arbitrary HDF files. So unless your example file was created by Octave using save --hdf5, I'm not sure I would consider this to be a bug.

John W. Eaton <jwe>
Project Administrator
Wed Jan 4 17:01:01 2012, comment #1:

Confirmed on a recent development tip (14146:2f05228cb959).

In terms of debugging. It is probably easiest to start with the fixed length example. The lack of a last column is probably an off-by-1 error where someone forgot that the length of a C string needs to be one larger than the actual string to account for the null ('\0') at the end.

I'm attaching two files from the reference website to make things easier.

File Description
h5ex_t_string.h5 String example in HDF5 format
h5ex_t_string.tst The expected output for the example

(file #24738, file #24739)

Rik <rik5>
Project Administrator
Tue Jan 3 14:32:54 2012, original submission:

I am very interested in loading
variable string arrays in octave,
but loading h5ex_t_vlstring.h5
from
fails withs
the error message is in reality much longer.
The file consists of
What can I do to load a h5 file with a vector of
variable length strings.

I want to load a vector of 300 000 strings most of fixed
length butfixed length is not guaranteed.

Which types of HDF5-strings are allowed are supported in octave?
at least
produces DS1
DS1 =

Partin
is suc
sweets
sorrow
-verbatim-
this is also not completly correct! the last column is lost.
See the output from Matlab

Ciau Erich

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #24738:  h5ex_t_string.h5 added by rik5 (2kB - application/octet-stream)
file #24739:  h5ex_t_string.tst added by rik5 (159B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Nov 18 20:43:40 2016mtmillerStatusConfirmed=>Duplicate
      Open/ClosedOpen=>Closed
    Thu Oct 10 19:19:53 2013rik5Item GroupCrash=>Incorrect Result
    Wed Jan 4 17:01:01 2012rik5Attached File-=>Added h5ex_t_string.h5, #24738
      Attached File-=>Added h5ex_t_string.tst, #24739
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup