Config dump contains "unknown" elements for measurement group
When doing sardana config dump
, and then sardana config validate
on the dump, validation fails because of unexpected fields. We should of course never end up with an invalid config from the dump
command!
Also seen in !1923
Measurement group channels contains several things that aren't recognized by the format:
- shape
- plot_axes
- plot_type
- value_ref_enabled
- value_ref_pattern
We should add these to the format if they are intended to be configured. But we should also exclude them from the dump if the are set to default values, which I suspect (plot_axes
appars to be set to <mov>
in all cases, shape
is an empty list, value_ref_enabled
is false
and value_ref_pattern
is an empty string). We do this in other places as it leads to a cleaner configuration file.
Edited by Zbigniew Reszela