pmla / polyhedral-template-matching

Polyhedral Template Matching algorithm for analysis of molecular dynamics simulation data
MIT License
12 stars 6 forks source link

Fix makefile. Assume that atomic numbers are 32 bit in Python interface. #6

Closed schiotz closed 8 years ago

schiotz commented 8 years ago

Unfortunately, the default integer size in NumPy arrays depends on the architecture and on the version of NumPy. We therefore have to assume a specific kind of integers in the Python interface, and chose numpy.int32. The alternative would be to cast the array in the C interface file.

Also fixed a dependency issue in the Makefile, and removed calling the unit tests during module initialization, since module initialization cannot return a Python exception in the normal way (so the code did not compile).