-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible bug in starting_communities (#26)
* This commit intends to address a possible bug one of our users is finding. The user has timeseries networks and they want to use the previous timeslice's communities generated as a starting point for the next timeslice's community partitioning. For whatever reason they're running into the one and only `panic!` macro literally in my code, which indicates we got a subnetwork with zero nodes in it. Since we carefully compress our `Clustering` object after each step I am sure that it isn't in the main leiden algorithm (or, rather, I'm **pretty** sure, but maybe past @daxpryce was the world's biggest jerk.) Anyway, I **think** the problem, which I have been unable to replicate using synthetic erdos renyi graphs which I will commit into `graspologic` regardless of whether I can repro or not, is in this initial mediator mapping phase where I turn the provided `HashMap`/`Dict` into a `Clustering` object. I tried to take too many short cuts, prematurely optimizing too much, and I get the sense there is an edge case I hadn't considered, and am not sure if I can repro. Since this user's data is sensitive I'm doing the old tried and true method of making some changes and tossing a build over a wall and seeing if it sorts out their problems. * This time with formatting applied * No longer throw an error if we can't find a node that corresponds to the mapping provided * cargo fmt fix again * wow * This changes the behavior a bit above and beyond a bug fix * Updating our pydocs now that we no longer throw a InvalidCommunityMappingError
- Loading branch information
Showing
3 changed files
with
29 additions
and
28 deletions.
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
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