kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
216 stars 37 forks source link

asym in python interface crashes on empty index list #129

Closed ChrisPattison closed 5 years ago

ChrisPattison commented 5 years ago

Attempting to antisymmetrize an expression will crash the python interpreter if no indices are passed (v 2.2.4)

Minimum reproducer

`from cadabra2 import *

Indices(Ex(r'\mu, \nu'), Ex('vector')) asym(Ex(r'\Lambda_{\mu \nu}'), Ex('')) `

kpeeters commented 5 years ago

Should be fixed in 7c7b02e5f39755123d72ed3c64865c73eb7310ff.