Skip to content

Commit

Permalink
Try updating syntax so coverage isn't broken; if it does not work try…
Browse files Browse the repository at this point in the history
… passing in --ignore-errors=True
  • Loading branch information
scott-carroll-verses-ai committed Jun 12, 2024
1 parent bb0c6cd commit a0b2ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymdp/jax/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

def select_probs(positions, matrix, dependency_list, actions=None):
args = tuple(p for i, p in enumerate(positions) if i in dependency_list)
args += () if actions is None else (actions,)
args = args + (actions,) if actions is not None else args

return matrix[..., *args]
return matrix[(...,) + args]

def cat_sample(key, p):
a = jnp.arange(p.shape[-1])
Expand Down

0 comments on commit a0b2ccd

Please sign in to comment.