Skip to content

MATLAB UnionSerializer should derive from yardl.binary.TypeSerializer #260

@naegelejd

Description

@naegelejd

The UnionSerializer should derive from yardl.binary.TypeSerializer like all the other binary serializer classes. This is a bug.

This was discovered in ismrmrd/mrd#32

Example repro:

w = mrd.binary.MrdWriter("testfile.mrd");
h = mrd.Header();
w.write_header(h);
data = complex(randn(100,50),randn(100,50));
head = mrd.ImageHeader(image_type = mrd.ImageType.COMPLEX);
meta = dictionary();
meta("EchoTime") = mrd.ImageMetaValue.Int64(60);
meta("FlipAngle") = mrd.ImageMetaValue.Float64(90);
img = mrd.ImageComplexFloat(data=data, head=head, meta=meta);
w.write_data(mrd.StreamItem.ImageComplexFloat(img));
w.end_data();
w.close();

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