You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defmatch_time_inds(self, inds=None):
""" Find the nearest matching sim time indices for the current module """ifindsisNone: inds=Ellipsisself_tvec=self.t.abstvecsim_tvec=self.sim.t.abstveciflen(self_tvec) ==len(sim_tvec): # Shortcut to avoid doing matchingreturnindselse:
out=sc.findnearest(sim_tvec, [inds])
returnout
The function is called with inds=None, so inds will be set to Ellipsis. But sc.findnearest doesn't like Ellipsis, resulting in an exception.
The text was updated successfully, but these errors were encountered:
The function is called with
inds=None
, so inds will be set toEllipsis
. Butsc.findnearest
doesn't likeEllipsis
, resulting in an exception.The text was updated successfully, but these errors were encountered: