Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
WillScottJackson opened this issue Jul 5, 2018 · 0 comments

Comments

@WillScottJackson
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant