From 1002d8494648f7680738fd0efe9ffd8cb2f6f185 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 4 May 2023 23:22:49 +0200 Subject: [PATCH] Add python binding for Task::insert --- core/python/bindings/src/core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/python/bindings/src/core.cpp b/core/python/bindings/src/core.cpp index d216e268..c2dad580 100644 --- a/core/python/bindings/src/core.cpp +++ b/core/python/bindings/src/core.cpp @@ -440,6 +440,7 @@ void export_core(pybind11::module& m) { t.add(it->cast()); }, "Append stage(s) to the task's top-level container") + .def("insert", &Task::insert, "stage"_a, "before"_a = -1, "Insert stage before given index") .def("__len__", [](const Task& t) { t.stages()->numChildren(); }) .def( "__getitem__",