-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to remove sites and connections from a topology (#761)
* add connections property to site class * store connection to each site when adding new connection * add remove_connections method and clean up remove_site * create lists from set first before removing things * add method to topology class to get connections by site; remove connections attr from Site * remove site's connections in remove_site(); add iter_connections method * add unit tests * add doc strings, handle strings in iter_connections * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add missing doc strings * raise error for bad connection types, add unit test * raise errors when removing site/conn not in top * fix unit test name * add check site in top to iter_connections_by_site * build up list of connections before removing from ordered set * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Co Quach <[email protected]>
- Loading branch information
1 parent
a3fa9f4
commit 0c4c34c
Showing
2 changed files
with
169 additions
and
1 deletion.
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