Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Nov 22, 2024
1 parent 058b468 commit 31f47fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/atomsbase.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import AtomsBase
using AtomsBase: AbstractSystem, FlexibleSystem, ChemialSpecies, PeriodicCell, IsolatedCell
using AtomsBase: AbstractSystem, FlexibleSystem, ChemicalSpecies, PeriodicCell, IsolatedCell
using Unitful
using UnitfulAtomic

Expand All @@ -15,8 +15,8 @@ function AtomsBase.FlexibleSystem(frame::Chemfiles.Frame)
velocity_arg = (Chemfiles.velocities(frame)[:, i]u"Å/ps", )
end

species = AtomsBase.ChemicalSpecies(Chemfiles.atomic_number(atom);
atom_name=Symbol(Chemfiles.name(atom)))
species = ChemicalSpecies(Chemfiles.atomic_number(atom);
atom_name=Symbol(Chemfiles.name(atom)))
if Symbol(species) != Symbol(Chemfiles.type(atom))
@warn("Ignoring non-standard atom type $(Chemfiles.type(atom)) " *
"for atom $i.")
Expand All @@ -25,7 +25,7 @@ function AtomsBase.FlexibleSystem(frame::Chemfiles.Frame)
# Collect atomic properties
atprops = Dict(
:mass => Chemfiles.mass(atom)u"u",
:species => AtomsBase.ChemicalSpecies(Chemfiles.atomic_number(atom)),
:species => ChemicalSpecies(Chemfiles.atomic_number(atom)),
:charge => Chemfiles.charge(atom)u"e_au",
:covalent_radius => Chemfiles.covalent_radius(atom)u"Å",
:vdw_radius => Chemfiles.vdw_radius(atom)*u"Å",
Expand Down

0 comments on commit 31f47fd

Please sign in to comment.