ESCOMP / CCPPStandardNames

Repository for community-accepted CCPP Standard Names and search tools
Other
3 stars 16 forks source link

check_xml_unique.py --overwrite doesn't actually remove duplicate variables #31

Closed nusbaume closed 1 year ago

nusbaume commented 1 year ago

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.