Skip to content

Commit

Permalink
Remove debugging statements for now
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 19, 2024
1 parent 2f301c8 commit 7921a2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions avogadro/qtplugins/forcefield/forcefield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,9 @@ void Forcefield::refreshScripts()
qDeleteAll(m_scripts);
m_scripts.clear();

qDebug() << " refresh scripts";

QMultiMap<QString, QString> scriptPaths =
QtGui::ScriptLoader::scriptList("energy");
foreach (const QString& filePath, scriptPaths) {
qDebug() << "Loading script: " << filePath;
auto* model = new ScriptEnergy(filePath);
if (model->isValid())
m_scripts.push_back(model);
Expand Down
6 changes: 2 additions & 4 deletions avogadro/qtplugins/forcefield/scriptenergy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ Real ScriptEnergy::value(const Eigen::VectorXd& x)
QString::number(x[i + 1]).toUtf8() + " " +
QString::number(x[i + 2]).toUtf8() + "\n";
}
qDebug() << " wrote coords ";
// qDebug() << " wrote coords ";

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
QByteArray result = m_interpreter->asyncWriteAndResponse(input);

qDebug() << " got result " << result;
// qDebug() << " got result " << result;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

// go through lines in result until we see "AvogadroEnergy: "
QStringList lines = QString(result).remove('\r').split('\n');
Expand Down Expand Up @@ -263,7 +262,6 @@ void ScriptEnergy::readMetaData()
.arg(scriptFilePath())
<< "\n"
<< parseError.errorString();
qWarning() << output;
return;
}

Expand Down

0 comments on commit 7921a2e

Please sign in to comment.