Skip to content

Commit

Permalink
Mark sim.reset as not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
tbekolay committed Jan 18, 2020
1 parent 5c99cb7 commit 26e5236
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions nengo_loihi/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def __init__( # noqa: C901
self.sims = OrderedDict()
self.timers = Timers()
self.timers.start("build")
self.seed = seed
self._n_steps = 0
self._time = 0

hardware_options = {} if hardware_options is None else hardware_options

Expand Down Expand Up @@ -214,7 +217,6 @@ def __init__( # noqa: C901

self._runner = StepRunner(self.model, self.sims, self.precompute, self.timers)
self.closed = False
self.reset(seed=seed)
self.timers.stop("build")

def __del__(self):
Expand Down Expand Up @@ -311,22 +313,7 @@ def reset(self, seed=None):
if self.closed:
raise SimulatorClosed("Cannot reset closed Simulator.")

if seed is not None:
self.seed = seed

self._n_steps = 0
self._time = 0
self.timers.reset("run")
self.timers.reset("connect")
if "startup" in self.timers:
self.timers.reset("startup")
if "shutdown" in self.timers:
self.timers.reset("shutdown")

# clear probe data
for probe in self.model.probes:
self._probe_outputs[probe] = []
self.data.reset()
raise NotImplementedError()

def run(self, time_in_seconds):
"""Simulate for the given length of time.
Expand Down

0 comments on commit 26e5236

Please sign in to comment.