Skip to content

Commit

Permalink
fix:structure reader needs lower case input (#45)
Browse files Browse the repository at this point in the history
* fix:structure reader needs lower case input

* Patch version to v1.0.9
  • Loading branch information
f3rmion authored Nov 17, 2022
1 parent be33f0e commit 34bad57
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kallisto"
version = "1.0.8"
version = "1.0.9"
description = "The Kallisto software enables the efficient calculation of atomic features that can be used within a quantitative structure-activity relationship (QSAR) approach. Furthermore, several modelling helpers are implemented."
license = "Apache 2.0"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/kallisto/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.8"
__version__ = "1.0.9"
9 changes: 7 additions & 2 deletions src/kallisto/reader/strucreader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# src/kallisto/reader/strucreader.py

from typing import TextIO

import click

from kallisto.molecule import Molecule
Expand All @@ -22,14 +24,17 @@ def constructMolecule(geometry: str, out: click.File) -> Molecule:
return molecule


def read(fileObject):
def read(fileObject: TextIO):
"""Method to first check the file type and then read
the structure accordingly
The returned atom coordinates will be in Bohr
"""

fname = fileObject.name.lower()
# get name of file
fname = fileObject.name

# initialise file type
filetp = "unknown"

lines = fileObject.readlines()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


def test_version():
assert __version__ == "1.0.8"
assert __version__ == "1.0.9"

0 comments on commit 34bad57

Please sign in to comment.