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.number_of_children(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.

Cheers, Leo

in Bug reports by (1.6k points)

1 Answer

0 votes
 
Best answer

Now fixed in github.

by (76.4k points)
selected by

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

...