Skip to content

Commit

Permalink
reimplementation of missing line when checking pA in self.validate(…
Browse files Browse the repository at this point in the history
…) method of `Agent`, from commit 1958e4d
  • Loading branch information
conorheins committed Sep 24, 2024
1 parent d235ca6 commit b882927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymdp/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def _validate(self):
), f"Please input an `A_dependencies` whose {m}-th indices correspond to the hidden state factors that line up with lagging dimensions of A[{m}]..."
if self.pA != None:
assert (
self.pA[m].shape[2:] == factor_dims
self.pA[m].shape[2:] == factor_dims if self.pA[m] is not None else True,
), f"Please input an `A_dependencies` whose {m}-th indices correspond to the hidden state factors that line up with lagging dimensions of pA[{m}]..."
assert max(self.A_dependencies[m]) <= (
self.num_factors - 1
Expand Down

0 comments on commit b882927

Please sign in to comment.