Skip to content

Commit

Permalink
Implemented Steve's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomDefaultUser committed Feb 19, 2025
1 parent 2b9fab7 commit 27bb734
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mala/descriptors/atomic_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __calculate_lammps(self, outdir, **kwargs):
if self.parameters.custom_lammps_compute_file != "":
lammps_compute_file = self.parameters.custom_lammps_compute_file
else:
filepath = __file__.split("atomic_density")[0]
filepath = os.path.dirname(__file__)
if self.parameters._configuration["mpi"]:
if self.parameters.use_z_splitting:
lammps_compute_file = os.path.join(
Expand Down
2 changes: 1 addition & 1 deletion mala/descriptors/bispectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def __calculate_lammps(self, outdir, **kwargs):
if self.parameters.custom_lammps_compute_file != "":
lammps_compute_file = self.parameters.custom_lammps_compute_file
else:
filepath = __file__.split("bispectrum")[0]
filepath = os.path.dirname(__file__)
if self.parameters._configuration["mpi"]:
if self.parameters.use_z_splitting:
lammps_compute_file = os.path.join(
Expand Down
2 changes: 1 addition & 1 deletion mala/descriptors/minterpy_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _calculate(self, atoms, outdir, grid_dimensions, **kwargs):
self.parameters.custom_lammps_compute_file
)
else:
filepath = __file__.split("minterpy")[0]
filepath = os.path.dirname(__file__)
if self.parameters._configuration["mpi"]:
raise Exception(
"Minterpy descriptors cannot be calculated "
Expand Down

0 comments on commit 27bb734

Please sign in to comment.