Skip to content

Commit

Permalink
Update README and add LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Jul 30, 2021
1 parent 3fa982e commit 777494c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 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.9.5'
__version__ = '0.9.6'

from cosymlib.molecule import Molecule
from cosymlib.molecule.geometry import Geometry
Expand Down
2 changes: 1 addition & 1 deletion cosymlib/file_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_geometry_from_file_xyz(file_name, read_multiple=False):
if line.lstrip().startswith(comment_line):
pass
elif line.strip() == '':
warnings.warn('Line {} is empty'.format(idl + 1), errors.EmptyLineWarning)
warnings.warn('Line {} is empty in xyz file'.format(idl + 1), errors.EmptyLineWarning)
else:
try:
float(line.split()[1])
Expand Down
1 change: 1 addition & 0 deletions cosymlib/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def generate_connectivity_from_geometry(geometry, thresh=1.2):

radii_matrix = np.array([radius]*len(radius))
radii_matrix = radii_matrix + radii_matrix.T
radii_matrix[(radii_matrix == 0.0)] = np.nan # avoid 0 distance division

try:
relative_differences = np.abs(radii_matrix - distances_matrix)/radii_matrix
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_version_number():


shape = Extension('cosymlib.shape.shp',
# extra_compile_args=['-std=c99'],
extra_f90_compile_args=['-static-libgcc'],
#include_dirs=include_dirs_numpy,
sources=['fortran/shp.pyf', 'fortran/shp.f90'])

Expand Down

0 comments on commit 777494c

Please sign in to comment.