Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Oct 30, 2019
1 parent ae47670 commit b6a77b7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -642,7 +642,7 @@ PyObject * SimulationSupportPythonWrapper::gradients(SimulationResults *pSimulat
if (stateGradientsDict == nullptr) {
stateGradientsDict = PyDict_New();
PyDict_SetItemString(gradientsDict, state->uri().toLatin1().data(), stateGradientsDict);
stateGradientsDictionaries[state->uri()] = stateGradientsDict;
stateGradientsDictionaries.insert(state->uri(), stateGradientsDict);
}

PythonQtSupport::addObject(stateGradientsDict, constant->uri(), gradient);
Expand Down

0 comments on commit b6a77b7

Please sign in to comment.