Skip to content

Troubles converting raw file format to ISMRMRD. Possible XML troubles.  #14

@WillScottJackson

Description

@WillScottJackson

Hi there

I have been prototyping a converter from my company's raw data format to ISMRMRD in python. After doing everything I need for a successful conversion. I tried running my k-space data through Gadgetron. It was given the following error in my terminal:

ERROR: HDF5 Error in ../../../src/H5T.c, line 4548: no appropriate function for conversion path
ERROR: HDF5 Error in ../../../src/H5Dio.c, line 958: unable to convert between src and dest datatype
ERROR: HDF5 Error in ../../../src/H5Dio.c, line 425: unable to set up type info
ERROR: HDF5 Error in ../../../src/H5Dio.c, line 173: can't read data
ERROR: File Error in /home/mrsol/ismrmrd/libsrc/dataset.c, line 1112: Failed to read header.
terminate called after throwing an instance of 'std::runtime_error'
  what():  ISMRMRD File Error in ismrmrd_read_header (/home/mrsol/ismrmrd/libsrc/dataset.c:1112: Failed to read header.
ISMRMRD HDF5 Error in H5Dread (../../../src/H5Dio.c:173: can't read data
ISMRMRD HDF5 Error in H5D__read (../../../src/H5Dio.c:425: unable to set up type info
ISMRMRD HDF5 Error in H5D__typeinfo_init (../../../src/H5Dio.c:958: unable to convert between src and dest datatype
ISMRMRD HDF5 Error in H5T_path_find (../../../src/H5T.c:4548: no appropriate function for conversion path
Aborted (core dumped)

I used HDFView to examine the testdata.h5 that gets generated with:
ismrmrd_generate_cartesian_shepp_logan -r 10

And compared it with my own; and the structure of the XML stuck out most to me:
image

Whereas mine wasn't deciphered the same from the same application:
image

I've also noticed that the start of the header there is much less information where the namespaces get defined etc.

I generated my header with

header.toxml('utf-8')

As per the example generate_cartesian_shepp_logan_dataset.py in this repository.

Are there any known issues with writing out to XML in the ISMRMRD python tools? Or is it likely that I have a library missing/not up to date? I have spent most of my day trying to get to the bottom of this issues. But to no avail!

Thanks

William

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions