-
Notifications
You must be signed in to change notification settings - Fork 838
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
Bug in pymatgen.core.lattice.py? #24
Comments
Hi there, I can't reproduce the error. You cannot just specify voronoi_data as site properties because there are only some properties allowed. But otherwise, I can't reproduce the error. Can you give me the exact forms of the variables voronoi_lattice, s and c? For example, the following works just fine: Structure(Lattice.cubic(3), ["Fe"], [[0,0,0]], coords_are_cartesian=True) |
May be what I am doing is wrong. In that case, let me know where I am wrong. Thanks, On 5/16/13 4:29 PM, Shyue Ping Ong wrote:
|
Hi Bharat, I don't see an input file. Maybe you can email them directly to me at shyuep@gmail.com? Regards, On Thursday, May 16, 2013 at 7:45 PM, mbkumar wrote:
|
I'll send them tomorrow morning. Bharat On Thu, 16 May 2013 18:56:18 -0500, Shyue Ping Ong
|
When trying to initialize Structure in core/structure.py, I am getting an error message.
Input to initializer:
Error Message:
File "voronoi_node_symmetry.py", line 34, in
voronoi_struct = Structure(voronoi_lattice, s, c, coords_are_cartesian=True, site_properties={"voronoi_data":p})
File "/Library/Python/2.7/site-packages/pymatgen/core/structure.py", line 297, in init
properties=prop))
File "/Library/Python/2.7/site-packages/pymatgen/core/sites.py", line 312, in init
self._fcoords = self._lattice.get_fractional_coords(coords)
File "/Library/Python/2.7/site-packages/pymatgen/core/lattice.py", line 104, in get_fractional_coords
return dot(cart_coords, self.inv_matrix)
ValueError: data type must provide an itemsize
The text was updated successfully, but these errors were encountered: