Skip to content

Commit

Permalink
[Fix] MetaData IO class attributes mistakenly included 'unit' instead…
Browse files Browse the repository at this point in the history
… of 'mimetype'
  • Loading branch information
g5t committed Nov 15, 2023
1 parent 577e4e3 commit 1d5a750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mccode_antlr/io/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',)),
Expand Down

0 comments on commit 1d5a750

Please sign in to comment.