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

fs: now save to yda 2.0

parent aeb6ab8e
No related branches found
No related tags found
No related merge requests found
......@@ -249,6 +249,7 @@ bool frida_command( string cmd )
" fl load from disk\n"
" fs save to disk\n"
" fso save to disk, allow overwrite\n"
" fe0 export to old y08 format (obsolete!)\n"
" fe1 export (only z and y, one line per spectrum)\n"
" fe2 export (one block per spectrum: z header and x-y lines)\n"
" fc copy\n"
......@@ -268,13 +269,13 @@ bool frida_command( string cmd )
} else if (cmd == "fl") {
NFileIn::load();
} else if (cmd == "fs") {
NFileOut::save( "y08" );
} else if (cmd == "fso") {
NFileOut::save( "y08", true );
} else if (cmd == "fS") {
NFileOut::save( "yda" );
} else if (cmd == "fSo") {
} else if (cmd == "fso") {
NFileOut::save( "yda", true );
} else if (cmd == "fe0") {
NFileOut::save( "y08" );
} else if (cmd == "fe0o") {
NFileOut::save( "y08", true );
} else if (cmd == "fe1") {
NFileOut::save( "csv" );
} else if (cmd == "fe2") {
......
......@@ -125,12 +125,10 @@ void NFileOut::save_yda( std::ofstream& ofs, POlo f )
if( fc ) {
out << YAML::Key << "Curve" << YAML::Value << YAML::BeginMap;
out << YAML::Key << "expr" << YAML::Value << fc->expr;
out << YAML::Key << "nPar" << YAML::Value << fc->nP;
out << YAML::Key << "weighing" << YAML::Value << COlc::wgtNames[fc->weighing];
out << YAML::Key << "chi2" << YAML::Value << fc->chi2;
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