-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use subtests for parameter-dependent tests * remove `utils` module from `hexagonal_lattice_graph.rs` * pre-compute the number of edges * split Rust test, add Python node position test * fix factor of two in coordinates calculation * fix offset bug when lattice has an odd number of columns * release note for position bug fixes --------- Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
Showing
4 changed files
with
240 additions
and
164 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
releasenotes/notes/hexagonal-lattice-graph-fixes-1cd4aa88f1591701.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed two bugs in the node position calculation done by the generator functions | ||
:func:`.hexagonal_lattice_graph` and :func:`.directed_hexagonal_lattice_graph` when | ||
``with_positions = True``: | ||
* Corrected a scale factor that made all the hexagons in the lattice irregular | ||
* Corrected an indexing bug that positioned the nodes in the last column of | ||
the lattice incorrectly when ``periodic = False`` and ``cols`` is odd |
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
Oops, something went wrong.