-
Notifications
You must be signed in to change notification settings - Fork 5
lattice_tools module for checking lattice type #240
Comments
The code looks good, @kitchoi! From the lattice-Boltzmann perspective, it's not really essential to have it in simphony-common, but of course there might be other use-cases in SimPhoNy in future that would benefit from it. Therefore, my opinion is to add it here. However, I don't see a clear most favorite place for it to be added. There are a couple of options that come to mind:
|
Thanks @tuopuu! |
I also like option 2. |
This is a great set of utilities which we would also use for other cases, e.g., the crystal lattice builders. The best is to move them at your earliest convenience to simphony-common under tools or utils (choose what you like better, no difference here). I would also suggest a sub category as lattice utilities/tools, e.g. so user can do this: from simphony.utils import lattice_tools |
Thanks @ahashibon! I have pushed a PR (#249) and it is ready for review; if it looks good then it can be merged. |
Please take a look at this module and see if it would be appropriate to include it in simphony-common instead of simphony-mayavi
Code: https://github.com/simphony/simphony-mayavi/blob/master/simphony_mayavi/cuds/lattice_tools.py
The functions are implemented using the looser definitions of some lattices following the factory functions defined in simphony-common, e.g. cubic lattice is also a tetragonal/orthorhombic/rhombohedral/monoclinic lattice. These details are documented.
The text was updated successfully, but these errors were encountered: