Skip to content

Commit

Permalink
Rename getsymmetry to findsymmetry in ext/CrystallographyExt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 13, 2023
1 parent 1a825f2 commit 51e509b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/CrystallographyExt.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module CrystallographyExt

using Crystallography: Lattice, Cell
using CrystallographyBase: Lattice, Cell
using QuantumESPRESSOBase.PWscf: PWInput
using Unitful: ustrip, @u_str
using UnitfulAtomic: bohr
using UnitfulAtomic

import CrystallographyBase: getsymmetry
import Crystallography: findsymmetry

function getsymmetry(input::PWInput, symprec=1e-5)
function findsymmetry(input::PWInput, symprec=1e-5)
lattice = Lattice(input)
option = input.atomic_positions.option
data = Iterators.map(input.atomic_positions.data) do atomic_position
Expand All @@ -27,7 +27,7 @@ function getsymmetry(input::PWInput, symprec=1e-5)
position, atom
end
cell = Cell(lattice, first.(data), last.(data))
return getsymmetry(cell, symprec)
return findsymmetry(cell, symprec)
end

end

0 comments on commit 51e509b

Please sign in to comment.