Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to AtomsBase 0.4 #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mfherbst
Copy link
Contributor

Updates the AtomsBase conversion layer to AtomsBase 0.4.

Requires JuliaMolSim/AtomsBase.jl#121 to be merged and AtomsBaseTesting released before tests pass.

velocity_arg = (Chemfiles.velocities(frame)[:, i]u"Å/ps", )
end

species = AtomsBase.ChemicalSpecies(Chemfiles.atomic_number(atom))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in case where the atomic number is unknown, this function will return 0. Does AtomsBase.ChemicalSpecies handle this?

Comment on lines +19 to +20
if Symbol(species) != Symbol(Chemfiles.name(atom))
@warn "Ignoring non-standard atom name $(Chemfiles.name(atom)) for atom $i."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this check on the atom type instead? Atom name could be something like CA, while atom type would be C

https://chemfiles.org/Chemfiles.jl/latest/reference/atom/#Chemfiles.type-Tuple{Chemfiles.Atom}

@mfherbst
Copy link
Contributor Author

Thanks for your review @Luthaf. This triggered some internal discussion in AtomsBase aboutChemicalSpecies, so this will stall a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants