Processing math: 100%
Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

Receiving this error

Traceback (most recent call last):
  File "<string>", line 2, in <module>
cadabra2.RuntimeException: Can only handle numerical exponents for weight counting.

when running

RicciFull;
drop_weight(_, $field = 3$);

RicciFull has many many terms like

hrbhdfher+14bhchdehfxhxchrbhdfhsehrs+14bhcdchefhrxhxbhdrhef

Note that

drop_weight(_, $field = 1$)
drop_weight(_, $ field = 3$);

works on a similar (much smaller) expression with the same fields in it.

hcchbchbc+hbchdbhcdhbchdbhechde

in General questions by (520 points)

Can you email me the full notebook to info@cadabra.science? I can't tell from the bit you wrote whether this is a bug or something you did wrong with the input.

1 Answer

0 votes

I have already answered this by email: the problem was a declaration

\partial{#}::WeightInherit(type=Multiplicative);

which does not do what you want because this option is called 'multiplicative' (without the capital 'M'). I will check in a version shortly which will warn about this.

by (85.0k points)
...