Commit b7f6213f96083adb3609f1664c02596229369d3f

Authored by Menouard AZIB
1 parent 6f6cb26b

Replace writeToFileDebug by writeDataFile

src/ParamOutputImpl/Plot/InstantPlot/PlotFunction.cc
... ... @@ -595,28 +595,6 @@ namespace plot
595 595 return true;
596 596 }
597 597  
598   - void PlotFunction::writeToFileDebug()
599   - {
600   - std::ofstream file("plotFunction_results.txt");
601   - std::map<std::string, std::vector<double>> ::iterator it;
602   -
603   - for (it = xValuesMap.begin(); it != xValuesMap.end(); it++)
604   - {
605   - file << it->first << std::endl;
606   - std::vector<double> tempY = yValuesMap[it->first];
607   - std::vector<double> tempX = it->second;
608   - for (std::size_t index = 0; index < tempX.size(); index++)
609   - {
610   - double x = tempX[index];
611   - double y = tempY[index];
612   -
613   - file << std::fixed << x << " " << std::fixed << y << std::endl;
614   - }
615   - }
616   -
617   - file.close();
618   - }
619   -
620 598 void PlotFunction::writeDataFile(){
621 599 std::string fileName = _panel->_page->fileDataName;
622 600 LOG4CXX_DEBUG(gLogger, "Name of the data file is " << fileName);
... ...
src/ParamOutputImpl/Plot/InstantPlot/PlotFunction.hh
... ... @@ -166,12 +166,6 @@ namespace plot
166 166  
167 167 private:
168 168 /**
169   - * @brief Write the results of the plotfunction in a file for debug only: the path is data/../RES/Plot/.
170   - * To download the file youn need to use this url http://192.168.56.101/data/testKernel/RES/Plot_/plotFunction_results.txt
171   - *
172   - */
173   - void writeToFileDebug();
174   - /**
175 169 * @brief draw Series for compued data for given spectro
176 170 *
177 171 * @param startDate
... ...