I have installed cadabra2 on a Ubuntu 24.04 system using the deb file provided. I imported the sample notebook called einstein_equations.cnb which derives Einstein's equation using an action variation. The last cell to be executed using python gives the following error:
substitute: Index error in replacement rule. substitute: No numerical pre-factors allowed on lhs of replacement rule.
The offending cell is
t1 = action[1][0][0][2]
eom:= 2\kappa @(t1) = 0;
distribute(_)
collect_factors(_)
manip.to_rhs(_, $- \kappa T_{\mu\nu}$);
substitute(_, manip.swap_sides(einsteinTensor));
and the last substitute command appears to give the error. manip.swap_sides command is coming from the imported cdb.core.manip package.
Any ideas what is going wrong?
Also could anyone enlighten me on the syntactical meaning of the first two lines of this cell. I couldn't find any references to it in the manual...
Thanks