Closed JP-Ellis closed 4 years ago
Does your minimal example work on a fresh kernel? I've just tried to reproduce it (also switching to the latest master commit on GitHub) but got only Spinor[Momentum[p[i]], m[i], 1]
as expected.
Yes, using a fresh kernel:
This is strange that you can't reproduce it...
EDIT
The fact that you couldn't reproduce it would suggest that something in my init.m
might be the issue, and I narrowed it down to:
Begin["System`"]
Enumerate::usage = "Enumerate anything that is indexable.";
Enumerate[l_] := Table[{i, l[[i]]}, {i, Length@l}];
Enumerate[l_, f_] := Table[{i, f[l[[i]]]}, {i, Length@l}];
Protect[Enumerate];
End[]
As to why this code is causing the issue, I don't know, but this then isn't an issue with FeynCalc. Sorry for the false bug report!
For anyone curious, changing System`
with Global`
fixed the issue.
No problem, glad you figured it out.
The output of
DiracSimplify
appears to replace certain patterns in its input. I have a trivial example below showing the issue. I don't know ifi
is the only culprit though.produces