Skip to content

Commit 6b01232

Browse files
authored
Merge pull request #52 from calpolyccg/fix-cli
Fix cli and openmm warning
2 parents 3331c37 + 001842e commit 6b01232

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

mdsapt/cli.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
def cli():
1919
# pylint: disable=line-too-long
2020
"""
21-
MDSAPT - Molecular Dynamics Symmetry-Adapted Perturbation Theory, by Alia Lescoulie, Astrid Yu, and Ashley Ringer McDonald.
21+
MDSAPT - Molecular Dynamics Symmetry-Adapted Perturbation Theory
22+
23+
by Alia Lescoulie, Astrid Yu, and Ashley Ringer McDonald.
2224
2325
This command-line interface lets you easily do common MDSAPT-related tasks.
2426
"""
@@ -76,8 +78,8 @@ def generate(filename: str, template: str, force: bool):
7678
)
7779
def run(in_file: str, out_file: str, force: bool):
7880
"""
79-
Run a SAPT calculation using the configuration in in_file. Outputs will be written to
80-
out_file.
81+
Run a SAPT calculation using the configuration in in_file.
82+
Outputs will be written to out_file.
8183
"""
8284
import mdsapt # pylint: disable=import-outside-toplevel
8385

@@ -98,8 +100,8 @@ def run(in_file: str, out_file: str, force: bool):
98100

99101
def ensure_safe_to_overwrite(path: str, force: bool):
100102
"""
101-
Helper function to ensure that it's safe to overwrite the given file, and
102-
halts the program if not.
103+
Helper function to ensure that it's safe to overwrite the given file,
104+
and halts the program if not.
103105
"""
104106
if not os.path.exists(path):
105107
return

mdsapt/repair.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
from typing import Set, Union
2424

25+
2526
import logging
2627

2728
import numpy as np
@@ -33,9 +34,10 @@
3334
from rdkit import Chem
3435

3536
from pdbfixer import PDBFixer
36-
from simtk.openmm.app import PDBFile
3737

38-
logger = logging.getLogger('mdsapt.optimizer')
38+
from openmm.app import PDBFile
39+
40+
logger = logging.getLogger('mdsapt.repair')
3941

4042

4143
def get_spin_multiplicity(molecule: Chem.Mol) -> int:

0 commit comments

Comments
 (0)