patchGNU Octave - Patches: patch #7537, Handle matlab way to store cell...

 
 

patch #7537: Handle matlab way to store cell arrays in hdf5 files.

Submitted by:  Mathias Fröhlich <frohlich>
Submitted on:  Thu 28 Apr 2011 04:36:32 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 28 Apr 2011 04:36:32 PM UTC, original submission:

Hi,

I have extended the hdf5 loader routines to handle datasets of object references in hdf5 files.
Matlab uses this for hdf5/mat files to store cell arrays.
Also it appears sensible to me to import object reference datasets as cell arrays.

The change extends the cell array hdf5 load function by the code that is able to interpret object references. Also the cell array's load_hdf5 method is used in case of an object reference dataset.
The hdf group iteration function is adapted to use H5O_info which replaces the today deprecated and currently used H5G_info function. Using that change, this iteration function can easily be reused for traversing the referenced objects from the new code path.
Using this patch, I am able to load simple matlab V7.3 hdf5 files containing simple cell arrays including the stored cell arrays which did not show up before.

The patch is developed against the current release version 3.4.0. But it also applies fine to todays hg mainline.

Please review, apply and/or suggest improvements.

Thanks

Mathias

Mathias Fröhlich <frohlich>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #23320:  octave-cell.diff added by frohlich (9kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by frohlich (Submitted 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 logged-in users can vote.

     

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

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 28 Apr 2011 04:36:32 PM UTCfrohlichAttached File-=>Added octave-cell.diff, #23320

    Back to the top


    Powered by Savane 3.1-cleanup