Skip to content

Commit

Permalink
Check parsebasis
Browse files Browse the repository at this point in the history
  • Loading branch information
Leticia-maria committed Sep 20, 2023
1 parent 78743db commit 4f04775
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ Main.BasisSets.GaussianBasisSet[
]
```
"""
function parsebasis(file, basisset)
atoms = getatoms(file)
function parsebasis(molecule, basisset)
atoms = getatoms(molecule)
data = _getbasis(atoms, basisset)

basis = GaussianBasisSet[]
Expand Down
4 changes: 3 additions & 1 deletion test/basis.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@time @testset "basis.jl" begin
sto3gBasis = parsebasis("./data/water/water.xyz", "sto-3g")
mol = molecule("./data/water/water.xyz")
sto3gBasis = parsebasis(mol, "sto-3g")

@test sto3gBasis[1].== 0
end

0 comments on commit 4f04775

Please sign in to comment.