From 3d0e83936c8abdd445636def07b9cd4accf03d47 Mon Sep 17 00:00:00 2001 From: Bo Gao <83304414+gaobhub@users.noreply.github.com> Date: Wed, 13 Mar 2024 12:59:20 -0400 Subject: [PATCH] Fix the issue for converting wrm type to lowercase --- tools/input_converters/xml-1.4-master.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/input_converters/xml-1.4-master.py b/tools/input_converters/xml-1.4-master.py index b397ef0aa..ec563fbd4 100644 --- a/tools/input_converters/xml-1.4-master.py +++ b/tools/input_converters/xml-1.4-master.py @@ -430,10 +430,10 @@ def copy_element(a_soil_list, var_name, var_type): def lowercase_wrmtype(xml): - rename_element(xml, "WRM type", "wrm type") - rename_element(xml, "WRM Type", "wrm type") - rename_element(xml, "permafrost WRM type", "permafrost wrm type") - rename_element(xml, "permafrost WRM Type", "permafrost wrm type") + replace_string_in_name(xml, "WRM type", "wrm type") + replace_string_in_name(xml, "WRM Type", "wrm type") + replace_string_in_name(xml, "permafrost WRM type", "permafrost wrm type") + replace_string_in_name(xml, "permafrost WRM Type", "permafrost wrm type") def brooks_corey(xml):