Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zipunsafe #12

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
package_dir = {'tamkin': 'tamkin'},
packages = ['tamkin', 'tamkin.io', 'tamkin.test'],
scripts=["scripts/tamkin-driver"],
zip_safe=False,
include_package_data=True,
install_requires=['numpy>=1.0', 'nose>=0.11', 'matplotlib>1.1',
'molmod>=1.3.2', 'scipy>=0.17.1'],
Expand Down
6 changes: 5 additions & 1 deletion tamkin/partf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,11 @@ def init_part_fun(self, nma, partf):
from molmod import Molecule
# compute the rotational symmetry number
tmp_mol = Molecule(nma.numbers, nma.coordinates)
self.symmetry_number = tmp_mol.compute_rotsym()
try:
self.symmetry_number = tmp_mol.compute_rotsym()
except ValueError:
self.symmetry_number = 1
print 'WARNING: error while estimating rotational symmetry number.'
else:
self.symmetry_number = 1
print 'WARNING: molecule is too large (%i atoms > 10) to quickly estimate the rotational symmetry number.' % natom
Expand Down