Skip to content

Commit

Permalink
Format and pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
emarinri committed Nov 22, 2019
1 parent 796c5a1 commit d663c30
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion read_structure_step/formats/mop/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from read_structure_step.formats.registries import register_format_checker
from . import obabel # noqa: F401
import os

keywords = [
'0SCF',
Expand Down
2 changes: 1 addition & 1 deletion read_structure_step/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def read(file_name, extension=None):
)

if extension is None:

extension = utils.guess_extension(file_name, use_file_name=True)

if extension is None:
Expand Down
1 change: 1 addition & 0 deletions read_structure_step/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def guess_extension(file_name, use_file_name=False):
if extension_checker(file_name) is True:
return extension


def sanitize_file_format(file_format):
"""
Returns a uniform file format string.
Expand Down
2 changes: 1 addition & 1 deletion tests/mopac_exists.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import seamm


def mopac_exists():

Expand Down
1 change: 1 addition & 0 deletions tests/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_format(structure):
set(bond) == set((6, 10, 'single')) for bond in parsed_file["bonds"]
)


@pytest.mark.skipif(mopac_exists() is False, reason="MOPAC could not be found")
def test_mopac():

Expand Down

0 comments on commit d663c30

Please sign in to comment.