Parcourir la source

modif nom variable

Rémi Synave il y a 7 mois
Parent
commit
53af7e7581
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 3 3
      csl/Experiment.cpp
  2. 1 1
      csl/Experiment.hpp

+ 3 - 3
csl/Experiment.cpp

@@ -139,10 +139,10 @@ Experiment::start ()
 					     tr("ID to use :"), QLineEdit::Normal,
 					     QDir::home().dirName(), &ok));
 
-  if((*suffix) == "algo" || (*suffix) == "random" || (*suffix) == "_algo" || (*suffix) == "_random")
+  if((*suffix) == "algo" || (*suffix) == "_algo" || (*suffix) == "random" || (*suffix) == "_random" || (*suffix) == "expert" || (*suffix) == "_expert")
     {
       QMessageBox msgBox;
-      msgBox.setText("Your name can't be [_]algo or [_]random.");
+      msgBox.setText("Your name can't be [_]algo or [_]random. or [_]expert");
       msgBox.exec();
       ok = false;
     }
@@ -179,7 +179,7 @@ Experiment::start ()
 
       for(int i = 0 ; i<filenames->size() ; i++)
 	{
-	  QString jsonFile((*dataPath)+"/"+QFileInfo(filenames->at(i)).baseName()+(*suffix_IA)+".json");
+	  QString jsonFile((*dataPath)+"/"+QFileInfo(filenames->at(i)).baseName()+(*suffix_algo)+".json");
 	  if(! (QFile(jsonFile).exists()) )
 	    {
 	      qDebug() << "WARNING !!!! " << jsonFile << " file missing";

+ 1 - 1
csl/Experiment.hpp

@@ -21,7 +21,7 @@ private:
   const int spaceInBetween = 20;
   const int time = 100;
   const int maxProgressBar = 100;
-  const QString *suffix_IA = new QString("_algo");
+  const QString *suffix_algo = new QString("_algo");
   const QString *suffix_random = new QString("_random");
   const QString *suffix_expert = new QString("_expert");
   QString *dataPath;