From ad2631120e48070b64da2dd57b8aa1f3b1848913 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Fri, 17 Jan 2025 16:32:59 -0800 Subject: [PATCH] allow yml file ext to be detected as yaml --- src/libs/conduit/conduit_node.cpp | 4 ++++ src/libs/relay/conduit_relay_io_identify_protocol.cpp | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/src/libs/conduit/conduit_node.cpp b/src/libs/conduit/conduit_node.cpp index 02fa371a4..1e0ae3d9d 100644 --- a/src/libs/conduit/conduit_node.cpp +++ b/src/libs/conduit/conduit_node.cpp @@ -17750,6 +17750,10 @@ Node::identify_protocol(const std::string &path, { io_type = "yaml"; } + else if(file_name_ext == "yml") + { + io_type = "yaml"; + } else if(file_name_ext == "conduit_yaml") { io_type = "conduit_yaml"; diff --git a/src/libs/relay/conduit_relay_io_identify_protocol.cpp b/src/libs/relay/conduit_relay_io_identify_protocol.cpp index 7b50ef604..8ca492b9b 100644 --- a/src/libs/relay/conduit_relay_io_identify_protocol.cpp +++ b/src/libs/relay/conduit_relay_io_identify_protocol.cpp @@ -98,10 +98,18 @@ identify_protocol(const std::string &path, { io_type = "conduit_base64_json"; } + else if(file_name_ext == "conduit_base64_yaml") + { + io_type = "conduit_base64_yaml"; + } else if(file_name_ext == "yaml") { io_type = "yaml"; } + else if(file_name_ext == "yml") + { + io_type = "yaml"; + } else if(file_name_ext == "bp" || file_name_ext == "adios") {