-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed up CTC edge errors #59
Merged
cmalinmayor
merged 10 commits into
Janelia-Trackathon-2023:main
from
bentaculum:faster_edge_errors
Oct 30, 2023
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7ba43be
Speed up CTC edge errors
bentaculum ad52084
Remove TrackingGraph nodes/edges type cast
bentaculum 2c7a881
Improve CTC edge errors clarity
bentaculum 7e72be3
Standardize TrackingGraph nodes/edges output dtype
bentaculum b7cd3c5
Improve naming in CTC edge errors
bentaculum 823d50e
Merge branch 'main' into faster_edge_errors
msschwartz21 e0c2999
Merge branch 'Janelia-Trackathon-2023:main' into faster_edge_errors
bentaculum 21166f3
Merge branch 'main' into faster_edge_errors
msschwartz21 c6dbdf0
Merge branch 'main' into faster_edge_errors
cmalinmayor 2a7ca53
Merge branch 'main' into faster_edge_errors
cmalinmayor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be
self.graph.edge_subgraph(limit_to).edges
and then the typing would be the same for both return statements.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, put this in here 7e72be3.
networkx.DiGraph.edge_subgraph
andnetworkx.DiGraph.subgraph
unfortunately don't throw an error when you ask for non-existing things. I do think that this is a reasonable check and added it. This way we also keep the API that you had before.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about a good way to make docstrings that include classes from third-party packages, like networkx
OutEdgeView
here. Writingnetworkx.classes.reportviews.OutEdgeView
in the docstring seems excessive.Might be a good segway into typing traccuracy ;), or at least the core parts of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah would really love to have this package better typed especially once we've sorta settled on the API