Skip to content

Commit

Permalink
Merge pull request espressomd#258 from espressomd/python
Browse files Browse the repository at this point in the history
Head
  • Loading branch information
bogdan-tanygin committed Jun 1, 2019
2 parents a155190 + 544f12a commit 093a0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/espressomd/polymer.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def positions(**kwargs):
validate_params(params, default_params)

cdef vector[Vector3d] start_positions
if (params["start_positions"] != []):
if (params["start_positions"].size > 0):
for i in range(len(params["start_positions"])):
start_positions.push_back(
make_Vector3d(params["start_positions"][i]))
Expand Down

0 comments on commit 093a0a0

Please sign in to comment.