Skip to content

Commit

Permalink
changing the place where the amber environments are called. (#81)
Browse files Browse the repository at this point in the history
* changing the place where the amber environments are called.

* fix format using black
* new_release
  • Loading branch information
lkagami authored Jul 21, 2022
1 parent 13b14db commit c9e3594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions acpype/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from acpype.params import binaries
from acpype.parser_args import get_option_parser
from acpype.topol import AbstractTopol, ACTopol, MolTopol, header
from acpype.utils import elapsedTime, set_for_pip, while_replace
from acpype.utils import elapsedTime, while_replace


def _chk_py_ver():
Expand Down Expand Up @@ -41,7 +41,6 @@ def init_main(binaries: Dict[str, str] = binaries, argv: Optional[List[str]] = N
SystemExit(status): 0 or 19 (failed)
"""
_chk_py_ver()
set_for_pip(binaries)
if argv is None:
argv = sys.argv[1:]

Expand Down
3 changes: 3 additions & 0 deletions acpype/topol.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
imprDihAngle,
job_pids_family,
parmMerge,
set_for_pip,
while_replace,
)

Expand Down Expand Up @@ -304,6 +305,8 @@ def __init__(self):
self.smiles = None
self.amb2gmx = None

set_for_pip(binaries) # check and call environments

def printDebug(self, text=""):
"""Debug log level."""
logger(self.level).debug(f"{while_replace(text)}")
Expand Down

0 comments on commit c9e3594

Please sign in to comment.