Skip to content

Commit

Permalink
Merge branch 'development_efrem'
Browse files Browse the repository at this point in the history
  • Loading branch information
efrembernuz committed Jan 29, 2020
2 parents ce066ac + 2bb8722 commit c6a9be3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cosymlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.7.2'
__version__ = '0.7.3'

from cosymlib.cosym_api import Cosymlib
from cosymlib.utils import get_shape_map
8 changes: 6 additions & 2 deletions cosymlib/file_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,12 @@ def get_molecule_from_file_ref(file_name):
pass
else:
try:
float(line.split()[0])
input_molecule.append(line.split())
if len(line.split()) > 3:
float(line.split()[1])
input_molecule.append(line.split()[1:])
else:
float(line.split()[0])
input_molecule.append(line.split())
except (ValueError, IndexError):
if input_molecule:
structures.append(Geometry(positions=input_molecule,
Expand Down
10 changes: 5 additions & 5 deletions examples/reference_structure.xyz
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
5
Methane
Td
0.5288 0.1610 0.9359
0.2051 0.8240 -0.6786
0.3345 -0.9314 -0.4496
-1.0685 -0.0537 0.1921
0.0000 0.0000 0.0000
H 0.5288 0.1610 0.9359
H 0.2051 0.8240 -0.6786
H 0.3345 -0.9314 -0.4496
H -1.0685 -0.0537 0.1921
C 0.0000 0.0000 0.0000

0 comments on commit c6a9be3

Please sign in to comment.