Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
natemacfadden committed Oct 17, 2023
1 parent db1c5ab commit 9645240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cytools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def symmetric_sparse_to_dense(tensor: dict,
if basis is not None:
l = np.asarray(basis).shape[1]
else:
l = 1 + max( set.union( map(lambda k:set(k), tensor.keys()) ) )
l = 1 + max( set.union(*[set(inds) for inds in tensor.keys()]) )

rank = len( next(iter(tensor.keys())) )
t = type( next(iter(tensor.values())) )
Expand Down

0 comments on commit 9645240

Please sign in to comment.