MCPcopy Create free account
hub / github.com/MITK/MITK / HasVariable

Method HasVariable

Modules/Python/src/mitkPythonContext.cpp:246–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246bool mitk::PythonContext::HasVariable(const std::string &varName)
247{
248 py::gil_scoped_acquire gil;
249
250 return m_Impl->Dictionary.contains(varName);
251}
252
253std::optional<bool> mitk::PythonContext::GetVariableAsBool(const std::string& varName)
254{

Callers 3

TestBindImageToPythonMethod · 0.80
IsSessionRunningMethod · 0.80

Calls 1

containsMethod · 0.80

Tested by 2

TestBindImageToPythonMethod · 0.64