MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / get_python_operator_instance

Function get_python_operator_instance

src/python/lfs/py_ui.cpp:313–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 std::mutex g_python_operator_mutex;
312
313 nb::object get_python_operator_instance(const std::string& id) {
314 std::lock_guard lock(g_python_operator_mutex);
315 auto it = g_python_operator_instances.find(id);
316 if (it != g_python_operator_instances.end()) {
317 return it->second;
318 }
319 return nb::none();
320 }
321
322 void store_python_operator_instance(const std::string& id, nb::object instance) {
323 std::lock_guard lock(g_python_operator_mutex);

Callers 3

register_ui_operatorsFunction · 0.85
register_operatorsFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected