Skip to content

Commit

Permalink
fix idx error
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusOrsoe committed Oct 27, 2023
1 parent 6d46fc5 commit 035b81b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/graphnet/models/graphs/graph_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ def _attach_inactive_sensors(
unique_sensors = geometry_table.reset_index(drop=True)

# multiple lines to avoid long line:
inactive_idx = ~geometry_table.isin(lookup).reset_index(drop=True)
inactive_idx = inactive_idx[geometry_table.columns[0]]
#
inactive_idx = ~geometry_table.index.isin(lookup)
inactive_sensors = unique_sensors.loc[
inactive_idx, input_feature_names
]
Expand Down

0 comments on commit 035b81b

Please sign in to comment.