Skip to content

Commit

Permalink
New reader
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaplaza committed May 24, 2024
1 parent 860bff3 commit 6c826b0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion navicat_marc/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def processargs(arguments):
epilog="Remember to cite the marc paper or repository - \n if they have a DOI by now\n - and enjoy!",
)
mbuilder.add_argument(
"-version", "--version", action="version", version="%(prog)s 0.1.11"
"-version", "--version", action="version", version="%(prog)s 0.1.12"
)
mbuilder.add_argument(
"-i",
Expand Down
8 changes: 8 additions & 0 deletions navicat_marc/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,14 @@ def from_file(self, filename, noh=True):
title = f.readline().strip()
energy = None
posname = None
if "scf done:" in title and energy is None:
try:
etitle = title.replace(" ", "").split(":")[1].rstrip()
energy = float(etitle) * ha_to_kcalmol
except ValueError:
energy = None
except AttributeError:
energy = None
if "energy:" in title and energy is None:
try:
etitle = title.split(":")[1].split(" ")[1].rstrip()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "navicat_marc"
version = "0.1.11"
version = "0.1.12"
authors = [
{ name="R. Laplaza", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name="marc",
packages=["navicat_marc"],
version="0.1.11",
version="0.1.12",
description="Modular Analysis of Representative Conformers",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 6c826b0

Please sign in to comment.