doc and indent fix

This commit is contained in:
Stefan Holst committed 2021-01-31 18:25:09 +09:00
1 parent 8434f5e694
commit c5be32d7e5
1 file changed
+2 -2
+2 -2
View File
@@ -107,10 +107,10 @@ class LogicSim:
sim.capture(state_bp) sim.capture(state_bp)
:param inject_cb: A callback function for manipulating intermediate signal values. :param inject_cb: A callback function for manipulating intermediate signal values.
This function is called with a line index and its new logic values (in bit-parallel format) after This function is called with a line and its new logic values (in bit-parallel format) after
evaluation of a node. The callback may manipulate the given values in-place, the simulation evaluation of a node. The callback may manipulate the given values in-place, the simulation
resumes with the manipulated values after the callback returns. resumes with the manipulated values after the callback returns.
:type inject_cb: ``f(int, ndarray)`` :type inject_cb: ``f(Line, ndarray)``
""" """
for node in self.circuit.topological_order(): for node in self.circuit.topological_order():
if self.state_epoch[node] != self.epoch: continue if self.state_epoch[node] != self.epoch: continue