Skip to content

Commit

Permalink
BUG in utils.py (default_pos_columns) (#739)
Browse files Browse the repository at this point in the history
solution for error "unsupported operand type(s) for +: 'map' and 'list'" when locating features in 4D image sequence: default_pos_columns should return a list.
  • Loading branch information
VeraMTitze authored Jan 3, 2024
1 parent ad9ec9a commit 597f183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trackpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def default_pos_columns(ndim):
if ndim < 4:
return ['z', 'y', 'x'][-ndim:]
else:
return map(lambda i: 'x' + str(i), range(ndim))
return list(map(lambda i: 'x' + str(i), range(ndim)))


def default_size_columns(ndim, isotropic):
Expand Down

0 comments on commit 597f183

Please sign in to comment.