This repository has been archived by the owner on Oct 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functions to access cluster basis to lattices (fixes #298) (#299)
* No function for accessing cluster basis in lattice cluster Fixes #298 * added license to Repeat.jl testset * No function for accessing cluster basis in lattice cluster Fixes #298 had to update Schott glass catalog download URL since this was causing our documentation build to fail.
- Loading branch information
Showing
8 changed files
with
32 additions
and
8 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# MIT license | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# See LICENSE in the project root for full license information. | ||
|
||
@testset "Repeat" begin | ||
function hex3RGB() | ||
clusterelements = SVector((0,0),(-1,0),(-1,1)) | ||
colors = [colorant"red",colorant"green",colorant"blue"] | ||
names = ["R","G","B"] | ||
eltlattice = Repeat.HexBasis1() | ||
clusterbasis = Repeat.LatticeBasis(( -1,2),(2,-1)) | ||
lattice = Repeat.LatticeCluster(clusterbasis,eltlattice,clusterelements) | ||
properties = DataFrame(Color = colors, Name = names) | ||
return Repeat.ClusterWithProperties(lattice,properties) | ||
end | ||
|
||
@test [-1 2;2 -1] == Repeat.basismatrix(Repeat.clusterbasis(hex3RGB())) | ||
end |