Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tvb_contrib/tvb/contrib/cosimulation/cosimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,12 @@ def compute_existing_connections(self):

def compute_min_delay(self):
idelays = self.connectivity.idelays[self.compute_existing_connections()]
self._min_idelay = 1
if idelays.size:
self._min_idelay = idelays.min()
self.log.warning("There are no existing connections (i.e., with nonzero weights)!\n"
"Setting minimum delay to 1 integrator time step = %g!." % self.integrator.dt)
else:
self._min_idelay = 1
self.log.warning("There are no existing connections (i.e., with nonzero weights)!\n"
"Setting minimum delay to 1 integrator time step = %g!." % self.integrator.dt)
self._min_delay = self._min_idelay * self.integrator.dt
return self._min_delay, self._min_idelay

Expand Down
Loading