The check_xml_unique.py function's --overwrite flag doesn't actually remove the duplicated variables in the overwritten file. This is because the code section that tries to remove the duplicate names has a typo in its find path, and thus never successfully finds the elements that need to be removed. Plus it appears that some of the list dimensioning is incorrect, and will result in duplicate elements getting skipped if they are in the same section.
The
check_xml_unique.py
function's--overwrite
flag doesn't actually remove the duplicated variables in the overwritten file. This is because the code section that tries to remove the duplicate names has a typo in its find path, and thus never successfully finds the elements that need to be removed. Plus it appears that some of the list dimensioning is incorrect, and will result in duplicate elements getting skipped if they are in the samesection
.