simphony / simphony-common

The native implementation of the Simphony cuds objects
BSD 2-Clause "Simplified" License
7 stars 5 forks source link

Add tools module and lattice_tools #249

Closed kitchoi closed 8 years ago

kitchoi commented 8 years ago

Added lattice_tools as simphony.tools.lattice_tools

Please play with it with your use cases.

Related to #240

kitchoi commented 8 years ago

Discussion with Adham led me to realise primitive cell configurations not included in the code. Please hold off review for now. Thanks!

kitchoi commented 8 years ago

Added features:

Please review. Thanks.

kitchoi commented 8 years ago

A documentation (for sphinx) is not yet written. I believe it is better to write a section for a set of tools under the tools module (lattice, crystal) once they are finalised.

tuopuu commented 8 years ago

@kitchoi, I left a few minor comments between the lines. Nice looking code generally. This package will be very useful to crystallographers and lattice-Boltzmann enthusiasts. :+1:

kitchoi commented 8 years ago

Thanks @tuopuu! All fixed. Please let me know if this is good to merge. Thanks.

tuopuu commented 8 years ago

@kitchoi, looks good. :+1:

I would have liked to still improve the docstrings in same_primitive_cell_config(), but maybe it's not worth the time. :smile: It's not so easy to define what similarity there means without going too far into mathematics. Anyway, it should be intuitive enough what a comparison between cosines and length ratios here does.