Skip to content

Commit

Permalink
add potential types
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Jan 31, 2024
1 parent 78e070c commit 3153977
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pyscal_rdf/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,18 @@ def annotate_md(graph,
else:
potential = URIRef(f'potential:{main_id}')

if 'meam' in potential_type:
if 'meam' in potential_type.lower():
graph.add((potential, RDF.type, ASO.MEAM))
elif 'eam' in potential_type:
elif 'eam' in potential_type.lower():
graph.add((potential, RDF.type, ASO.EAM))
elif 'lj' in potential_type:
elif 'lj' in potential_type.lower():
graph.add((potential, RDF.type, ASO.LennardJones))
elif 'ace' in potential_type:
elif 'ace' in potential_type.lower():
graph.add((potential, RDF.type, ASO.MLPotential))
elif 'snap' in potential_type.lower():
graph.add((potential, RDF.type, ASO.MLPotential))
elif 'tersoff' in potential_type.lower():
graph.add((potential, RDF.type, ASO.Tersoff))
else:
graph.add((potential, RDF.type, ASO.InteratomicPotential))

Expand Down

0 comments on commit 3153977

Please sign in to comment.