From 1d5a75036c6e1c44dc13225788862f2adf0aab00 Mon Sep 17 00:00:00 2001 From: Gregory Tucker Date: Wed, 15 Nov 2023 13:07:26 +0100 Subject: [PATCH] [Fix] MetaData IO class attributes mistakenly included 'unit' instead of 'mimetype' --- mccode_antlr/io/hdf5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mccode_antlr/io/hdf5.py b/mccode_antlr/io/hdf5.py index 4051f46..c69ad80 100644 --- a/mccode_antlr/io/hdf5.py +++ b/mccode_antlr/io/hdf5.py @@ -400,7 +400,7 @@ class HDF5IO: _handlers = { 'Instr': InstrIO, 'InstrumentParameter': _dataclass_io(InstrumentParameter, attrs=('name', 'unit'), required=('value',)), - 'MetaData': _dataclass_io(MetaData, attrs=('name', 'unit', 'value'), required=('source',)), + 'MetaData': _dataclass_io(MetaData, attrs=('name', 'mimetype', 'value'), required=('source',)), 'DataSource': DataSourceIO, 'Instance': InstanceIO, 'RawC': _dataclass_io(RawC, attrs=('filename', 'line'), required=('source',), optional=('translated',)),