Skip to content
Snippets Groups Projects
Commit 31c4b595 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

simplify format key

parent af3b7f8c
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ void NFileIn::Load_yda(std::ifstream& FS, string fnam) ...@@ -82,7 +82,7 @@ void NFileIn::Load_yda(std::ifstream& FS, string fnam)
int version; int version;
if ( s == "frida/y08 for yaml1" ) if ( s == "frida/y08 for yaml1" )
version = 1; version = 1;
else if ( s == "frida/y15 for yaml1.2" ) else if ( s == "yaml/frida 2.0" )
version = 2; version = 2;
else else
throw "unknown data format '" + s + "'"; throw "unknown data format '" + s + "'";
......
...@@ -90,7 +90,7 @@ void NFileOut::save_yda( std::ofstream& ofs, POlo f ) ...@@ -90,7 +90,7 @@ void NFileOut::save_yda( std::ofstream& ofs, POlo f )
out << YAML::BeginMap; out << YAML::BeginMap;
out << YAML::Key << "Meta" << YAML::Value << YAML::BeginMap; out << YAML::Key << "Meta" << YAML::Value << YAML::BeginMap;
out << YAML::Key << "format" << YAML::Value << "frida/y15 for yaml1.2"; out << YAML::Key << "format" << YAML::Value << "yaml/frida 2.0";
out << YAML::Key << "type" << YAML::Value << ( fd ? "generic tabular data" : "frida2 curve" ); out << YAML::Key << "type" << YAML::Value << ( fd ? "generic tabular data" : "frida2 curve" );
out << YAML::EndMap; out << YAML::EndMap;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment