Skip to content

Commit

Permalink
Mods for 1.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rklasky committed Oct 15, 2023
1 parent 1c08089 commit 2c77a94
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions MSSPM_Main/nmfMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1746,10 +1746,10 @@ nmfMainWindow::loadModelFromHPCMetaFile(std::string& hpcProjectName,
}
file.close();

// Load model name from hpc meta file
Setup_Tab4_ptr->setModelName(QString::fromStdString(hpcModelName));
Setup_Tab4_ptr->loadModel();
callback_ModelSaved();
// // Load model name from hpc meta file
// Setup_Tab4_ptr->setModelName(QString::fromStdString(hpcModelName));
// Setup_Tab4_ptr->loadModel();
// callback_ModelSaved();
}

bool
Expand Down Expand Up @@ -1802,10 +1802,8 @@ nmfMainWindow::menu_importHPCFiles()
// Load model from HPCMetaData.csv file in the inputData/hpc directory
loadModelFromHPCMetaFile(hpcProjectName,hpcModelName);


QString msg = "\nThis will import HPC .csv files from the project's inputData/hpc directory.";
msg += "\n\nSetting Project Name to: " + QString::fromStdString(hpcProjectName);
msg += "\nSetting Model Name to load: " + QString::fromStdString(hpcModelName);
msg += "\nNumber of HPC runs to import: " + QString::number(numHPCFiles);
msg += "\n\nOK to continue?\n";
reply = QMessageBox::question(this, tr("HPC Import"), tr(msg.toLatin1()),
Expand All @@ -1815,7 +1813,19 @@ nmfMainWindow::menu_importHPCFiles()
return;
}
m_ProjectName = hpcProjectName;
m_ModelName = hpcModelName;


msg = "\nOK to set Model Name to: " + QString::fromStdString(hpcModelName) + " ?\n";
reply = QMessageBox::question(this, tr("New Model Name"), tr(msg.toLatin1()),
QMessageBox::No|QMessageBox::Yes,
QMessageBox::Yes);
if (reply == QMessageBox::Yes) {
m_ModelName = hpcModelName;
Setup_Tab4_ptr->setModelName(QString::fromStdString(hpcModelName));
Setup_Tab4_ptr->loadModel();
callback_ModelSaved();
}


// Check to make sure there are the correct number of each parameter's estimated biomass files.
if (! checkForMissingHPCFiles(numHPCFiles)) {
Expand Down Expand Up @@ -2601,7 +2611,7 @@ void
nmfMainWindow::menu_about()
{
QString name = "Multi-Species Surplus Production Model";
QString version = "MSSPM v1.7.5 ";
QString version = "MSSPM v1.7.6 ";
QString specialAcknowledgement = "";
QString cppVersion = "C++??";
QString mysqlVersion = "?";
Expand Down

0 comments on commit 2c77a94

Please sign in to comment.