Skip to content

Commit 6cadb6d

Browse files
committed
updated the way we pass facts to reason again to be same as reasoning for the first time (docs)
1 parent 49aa83a commit 6cadb6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/user_guide/8_advanced_usage.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Reasoning Multiple Times
1818
-------------------------
1919
PyReason allows you to reason over the graph multiple times. This can be useful when you want to reason over the graph iteratively
2020
and add facts that were not available before. To reason over the graph multiple times, you can set ``again=True`` in ``pr.reason(again=True)``.
21-
To specify additional facts, use the ``facts`` parameter in ``pr.reason(...)``. These parameters allow you to add additional
22-
facts to the graph before reasoning again. The facts are specified as a list of PyReason facts.
21+
To specify additional facts or rules, you can add them as you normally would using ``pr.add_fact`` and ``pr.add_rule``.
2322

2423
.. note::
2524
When reasoning multiple times, the time continues to increment. Therefore any facts that are added should take this into account.
2625
The timestep parameter specifies how many additional timesteps to reason. For example, if the initial reasoning converges at
27-
timestep 5, and you want to reason for 3 more timesteps, you can set ``timestep=3`` in ``pr.reason(timestep=3, again=True, facts=[some_new_fact])``.
26+
timestep 5, and you want to reason for 3 more timesteps, you can set ``timestep=3`` in ``pr.reason(timestep=3, again=True)``.
27+
If you are specifying new facts, take this into account when setting their ``start_time`` and ``end_time``.

0 commit comments

Comments
 (0)