Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cli #52

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions mdsapt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
def cli():
# pylint: disable=line-too-long
"""
MDSAPT - Molecular Dynamics Symmetry-Adapted Perturbation Theory, by Alia Lescoulie, Astrid Yu, and Ashley Ringer McDonald.
MDSAPT - Molecular Dynamics Symmetry-Adapted Perturbation Theory

by Alia Lescoulie, Astrid Yu, and Ashley Ringer McDonald.

This command-line interface lets you easily do common MDSAPT-related tasks.
"""
Expand Down Expand Up @@ -76,8 +78,8 @@ def generate(filename: str, template: str, force: bool):
)
def run(in_file: str, out_file: str, force: bool):
"""
Run a SAPT calculation using the configuration in in_file. Outputs will be written to
out_file.
Run a SAPT calculation using the configuration in in_file.
Outputs will be written to out_file.
"""
import mdsapt # pylint: disable=import-outside-toplevel

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

def ensure_safe_to_overwrite(path: str, force: bool):
"""
Helper function to ensure that it's safe to overwrite the given file, and
halts the program if not.
Helper function to ensure that it's safe to overwrite the given file,
and halts the program if not.
"""
if not os.path.exists(path):
return
Expand Down
6 changes: 4 additions & 2 deletions mdsapt/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

from typing import Set, Union


import logging

import numpy as np
Expand All @@ -33,9 +34,10 @@
from rdkit import Chem

from pdbfixer import PDBFixer
from simtk.openmm.app import PDBFile

logger = logging.getLogger('mdsapt.optimizer')
from openmm.app import PDBFile

logger = logging.getLogger('mdsapt.repair')


def get_spin_multiplicity(molecule: Chem.Mol) -> int:
Expand Down
Loading