Skip to content

Commit

Permalink
Fix Lammps potential counting
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Mar 10, 2021
1 parent 86b8ad1 commit 1cc9c09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyiron_atomistics/atomistics/job/potentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def _get_potential_df(plugin_name, file_name_lst, backward_compatibility_name):
resource_path_lst = s.resource_paths
for conda_var in ["CONDA_PREFIX", "CONDA_DIR"]:
if conda_var in env.keys(): # support iprpy-data package
resource_path_lst += [os.path.join(env[conda_var], "share", "iprpy")]
path_to_add = os.path.join(env[conda_var], "share", "iprpy")
if path_to_add not in resource_path_lst:
resource_path_lst += [path_to_add]
df_lst = []
for resource_path in resource_path_lst:
if os.path.exists(os.path.join(resource_path, plugin_name, "potentials")):
Expand Down

0 comments on commit 1cc9c09

Please sign in to comment.