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

Hi Troops,

I just ran into what looks like a simple bug. The following code causes Cadabra (and Python) to crash.

foo = Ex(0)
bah = Ex(0)
foobah := @(foo) - @(bah).

The error reported by Cadabra was

Assertion failed: (tr.numberofchildren(it)>0), function cleanup_sub,
file /Users/leo/Cadabra/v2.0/core/PreClean.cc, line 141.

This only occurs when using Ex(0) for both foo and bah. Very interesting.


asked in Bug reports by (1.5k points)

1 Answer

0 votes
Best answer

Now fixed in github.

answered by (54.1k points)
selected by

Hi Kaspers,
Many thanks for the quick fix. It works.