Created
November 21, 2022 09:30
-
-
Save joaofig/f8bfaf2f1b81a1e9fdc3866d8b7bf7c8 to your computer and use it in GitHub Desktop.
This function returns all the matching links for a query trajectory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_matching_links(self, exclude_self=True): | |
| df = load_matching_links(self.traj_id) | |
| if exclude_self: | |
| df = df[df["traj_id"] != self.traj_id] | |
| links = np.unique(df["link_id"].values) | |
| return links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment