Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Sep 3, 2024
1 parent 2e92824 commit 4adc919
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions benchmarl/models/gnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,8 @@ def __init__(
if _unravel_key_to_tuple(key)[-1] not in (position_key, velocity_key)
]
) # Input keys
if (
self.position_key is not None
and not not self.exclude_pos_from_node_features
):
self.input_features += self.pos_features
if self.position_key is not None and not self.exclude_pos_from_node_features:
self.input_features += self.pos_features - 1
if self.velocity_key is not None:
self.input_features += self.vel_features

Expand Down

0 comments on commit 4adc919

Please sign in to comment.