Commit 355103c7 authored by Sebastian Wolf's avatar Sebastian Wolf

Avoid depreced warning in python bindings

parent 01e6e0dc
Pipeline #1146 passed with stages
in 19 minutes and 37 seconds
......@@ -133,7 +133,7 @@ void expose_tensor() {
})
.def("degree", +[](const Tensor& _A){
XERUS_LOG(warning, "Tensor::degree() is deprecated and will be removed in a future version. Use Tensor::order() instead.");
return _A.degree();
return _A.order();
})
.def("order", &Tensor::order)
.def_readonly("factor", &Tensor::factor)
......
......@@ -39,7 +39,7 @@ void expose_tensorNetwork() {
})
.def("degree", +[](const TensorNetwork& _A){
XERUS_LOG(warning, "TensorNetwork::degree() is deprecated and will be removed in a future version. Use TensorNetwork::order() instead.");
return _A.degree();
return _A.order();
})
.def("order", &TensorNetwork::order)
.def("datasize", &TensorNetwork::datasize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment