Skip to content

Commit

Permalink
allow yml file ext to be detected as yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Jan 18, 2025
1 parent 794596d commit ad26311
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/conduit/conduit_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 8 additions & 0 deletions src/libs/relay/conduit_relay_io_identify_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand Down

0 comments on commit ad26311

Please sign in to comment.