A new a argument, simult_all, is added to Tensor.subst_all, which facilitates substituting with all TensorDef instances in a list independently of their order. By default, simult_all is set to be false, so the new feature does not affect existing drudge functionalities. Tests are added, which can also serve as code examples.
This PR also fixes a failed test arising from a sympy limitation of simplifying expressions involving Wigner symbols.
Coverage decreased (-0.02%) to 86.839% when pulling 875ae465d353b1a9d67e5d2930af6e67eeac2fbd on chenpeizhi:master into fc0be911c7968f0a12c275f0d0361cee35c3bbf9 on tschijnmo:master.
A new a argument, simult_all, is added to Tensor.subst_all, which facilitates substituting with all TensorDef instances in a list independently of their order. By default, simult_all is set to be false, so the new feature does not affect existing drudge functionalities. Tests are added, which can also serve as code examples.
This PR also fixes a failed test arising from a sympy limitation of simplifying expressions involving Wigner symbols.