diff --git a/python/damask/util.py b/python/damask/util.py index d59b41b16..b34955659 100644 --- a/python/damask/util.py +++ b/python/damask/util.py @@ -375,6 +375,8 @@ def shapeshifter(fro,to,mode='left',keep_ones=False): """ + if not len(fro) and not len(to): return () + beg = dict(left ='(^.*\\b)', right='(^.*?\\b)') sep = dict(left ='(.*\\b)',