Hi again,
This is something I stumbled upon a while ago. As the title suggests, it seems that when a record field is assigned, the type of the assigned value is not checked if the field itself is a record.
hdf5ds.ConfParams has 2 subrecords, filename_parameters of type hdf5ds.HDF5DataStoreFileNameParams and
file_layout_parameters of type hdf5ds.HDF5DataStoreFileLayoutParams.
In the first part of the example below, they are correctly assigned but swapped in the second part.
On a second look at the output, it seems that some guard is in place, as the attempt to assign swapped types is ignored and the default values are shown
Hi again, This is something I stumbled upon a while ago. As the title suggests, it seems that when a record field is assigned, the type of the assigned value is not checked if the field itself is a record.
Example from
DUNE-DAQ/dfmodules/schema
hdf5ds.ConfParams
has 2 subrecords,filename_parameters
of typehdf5ds.HDF5DataStoreFileNameParams
andfile_layout_parameters
of typehdf5ds.HDF5DataStoreFileLayoutParams
. In the first part of the example below, they are correctly assigned but swapped in the second part. On a second look at the output, it seems that some guard is in place, as the attempt to assign swapped types is ignored and the default values are shownResult