Skip to content

Commit

Permalink
Merge LAMMPS classes in one module
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 17, 2023
1 parent 26c0531 commit 426752a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions atomistics/calculators/lammps/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from atomistics.calculators.lammps.calculator import (
evaluate_with_lammps,
evaluate_with_lammps_library,
)
from atomistics.calculators.lammps.potential import get_potential_dataframe
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from jinja2 import Template
from pylammpsmpi import LammpsASELibrary

from atomistics.calculators.lammps_potentials import (
from atomistics.calculators.lammps.potential import (
update_potential_paths,
view_potentials,
)
Expand Down Expand Up @@ -159,10 +159,3 @@ def _run_simulation(structure, potential_dataframe, input_template, lmp):
lmp.interactive_lib_command(l)

return lmp


def get_potential_dataframe(structure, resource_path):
return update_potential_paths(
df_pot=view_potentials(structure=structure, resource_path=resource_path),
resource_path=resource_path,
)
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,10 @@ def update_potential_paths(df_pot, resource_path):
config_lst.append(potential_commands)
df_pot["Config"] = config_lst
return df_pot


def get_potential_dataframe(structure, resource_path):
return update_potential_paths(
df_pot=view_potentials(structure=structure, resource_path=resource_path),
resource_path=resource_path,
)

0 comments on commit 426752a

Please sign in to comment.