Skip to content

Commit

Permalink
Replace [] with Base.vect
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 8, 2023
1 parent e754208 commit 37aed5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/miller.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct Miller <: AbstractMiller
data::SVector{3,Int64}
Miller(v) = new(iszero(v) ? v : v gcd(v))
end
Miller(i, j, k) = Miller([i, j, k])
Miller(i, j, k) = Miller(Base.vect(i, j, k))
"""
ReciprocalMiller(i, j, k)
Expand All @@ -26,7 +26,7 @@ struct ReciprocalMiller <: AbstractMiller
data::SVector{3,Int64}
ReciprocalMiller(v) = new(iszero(v) ? v : v gcd(v))
end
ReciprocalMiller(i, j, k) = ReciprocalMiller([i, j, k])
ReciprocalMiller(i, j, k) = ReciprocalMiller(Base.vect(i, j, k))
abstract type AbstractMillerBravais <: Indices end
"""
MillerBravais(i, j, k, l)
Expand All @@ -40,7 +40,7 @@ struct MillerBravais <: AbstractMillerBravais
return new(iszero(v) ? v : v gcd(v))
end
end
MillerBravais(i, j, k, l) = MillerBravais([i, j, k, l])
MillerBravais(i, j, k, l) = MillerBravais(Base.vect(i, j, k, l))
"""
ReciprocalMillerBravais(i, j, k, l)
Expand All @@ -53,7 +53,7 @@ struct ReciprocalMillerBravais <: AbstractMillerBravais
return new(iszero(v) ? v : v gcd(v))
end
end
ReciprocalMillerBravais(i, j, k, l) = ReciprocalMillerBravais([i, j, k, l])
ReciprocalMillerBravais(i, j, k, l) = ReciprocalMillerBravais(Base.vect(i, j, k, l))

const REGEX = r"([({[<])\s*([-+]?[0-9]+)[\s,]+([-+]?[0-9]+)[\s,]+([-+]?[0-9]+)?[\s,]+([-+]?[0-9]+)[\s,]*([>\]})])"

Expand Down

0 comments on commit 37aed5f

Please sign in to comment.