Skip to content

Commit

Permalink
Exclude sander.LES from allowed executables.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Jul 11, 2024
1 parent c8246ed commit edadeee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/BioSimSpace/Process/_amber.py
Original file line number Diff line number Diff line change
Expand Up @@ -2856,9 +2856,11 @@ def is_exe(fpath):
# order their path accordingly, or use the exe keyword argument.
if results:
for exe in results:
exe = _pathlib.Path(p) / exe
if is_exe(exe):
return str(exe)
# Exclude "locally enhanced sampling" executables.
if "LES" not in exe:
exe = _pathlib.Path(p) / exe
if is_exe(exe):
return str(exe)

msg = (
"'BioSimSpace.Process.Amber' is not supported. "
Expand Down

0 comments on commit edadeee

Please sign in to comment.