Skip to content

Commit

Permalink
trying some DF magic
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Apr 22, 2024
1 parent 4f443be commit 4b7ee42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skyscan-c2/c2_pub_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,11 +466,11 @@ def _target_selection_callback(
]
if not target_ledger_df.empty:
logging.debug("Object[s] within distance threshold")
target_ledger_df["selectable"] = True
target_ledger_df.loc[:, "selectable"] = True
target = target_ledger_df.sort_values(
by="relative_distance", ascending=True
).iloc[0]
target["target"] = True
target.loc["target"] = True
else:
logging.debug("No object[s] within distance threshold")
elif self.override_object and not object_ledger_df.empty:
Expand Down

0 comments on commit 4b7ee42

Please sign in to comment.