Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit fb78630

Browse files
solve the error given by zip with no len method in Python3
1 parent f0b2d8b commit fb78630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tsodyksmarkramstp/tmevaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, t, v, tstim, params):
6565
for name, minval, maxval in self.params]
6666
# Objectives
6767
self.objectives = [bpop.objectives.Objective('interval_%d' % (i,))
68-
for i in xrange(len(self.split_idx))]
68+
for i in xrange(len(list(self.split_idx)))]
6969

7070
def generate_model(self, individual):
7171
"""Calls numerical integrator `tmodeint.py` and returns voltage trace based on the input parameters"""

0 commit comments

Comments
 (0)