Skip to content

Commit ac23256

Browse files
committed
Added advance to timestep call for asyncwrapper
Signed-off-by: bamsumit <bam_sumit@hotmail.com>
1 parent 2be6c71 commit ac23256

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lava/magma/core/model/py/model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,10 @@ def run_async(self) -> None:
759759
if py_loihi_model.post_guard(self):
760760
py_loihi_model.run_post_mgmt(self)
761761
self.time_step += 1
762-
self.advance_to_time_step(self.time_step)
762+
# self.advance_to_time_step(self.time_step)
763+
for port in self.py_ports:
764+
if isinstance(port, PyOutPort):
765+
port.advance_to_time_step(self.time_step)
763766

764767
py_async_model = type(
765768
name,

0 commit comments

Comments
 (0)