-
Notifications
You must be signed in to change notification settings - Fork 10
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
Symmetry Operations on Cell not working #182
Comments
Hi @atbug, I am having no issue running this example: julia> find_primitive(cell)
SpglibCell{Float64, Float64, Int64, Any}
lattice:
3.589257155 3.589257155 0.0
-1.999719735 1.999719735 0.0
0.0 0.0 8.57154746
4 atomic positions:
0.15311560999999996 0.84688439 0.1203133
0.34688439000000004 0.65311561 0.6203133
0.65311561 0.34688439000000004 0.3796867
0.84688439 0.15311560999999996 0.8796867
4 atoms:
8 8 8 8 So I guess it may be some problem with spglib itself. Let use debug it step by step:
For example, if you have a script in a project that you'd like to trace, run |
julia> using Cells, PyCall
julia> spglib = pyimport("spglib")
PyObject <module 'spglib' from '/path/to/myhome/.julia/conda/3/lib/python3.9/site-packages/spglib/__init__.py'>
julia> lattice = [[7.17851431, 0, 0], [0, 3.99943947, 0], [0, 0, 8.57154746]]
3-element Vector{Vector{Float64}}:
[7.17851431, 0.0, 0.0]
[0.0, 3.99943947, 0.0]
[0.0, 0.0, 8.57154746]
julia> positions = [
[0.0, 0.84688439, 0.1203133],
[0.0, 0.65311561, 0.6203133],
[0.0, 0.34688439, 0.3796867],
[0.0, 0.15311561, 0.8796867],
[0.5, 0.34688439, 0.1203133],
[0.5, 0.15311561, 0.6203133],
[0.5, 0.84688439, 0.3796867],
[0.5, 0.65311561, 0.8796867],
]
8-element Vector{Vector{Float64}}:
[0.0, 0.84688439, 0.1203133]
[0.0, 0.65311561, 0.6203133]
[0.0, 0.34688439, 0.3796867]
[0.0, 0.15311561, 0.8796867]
[0.5, 0.34688439, 0.1203133]
[0.5, 0.15311561, 0.6203133]
[0.5, 0.84688439, 0.3796867]
[0.5, 0.65311561, 0.8796867]
julia> atoms = [8 for i in 1:length(positions)]
8-element Vector{Int64}:
8
8
8
8
8
8
8
8
julia> spglib.get_spacegroup(
(lattice,
positions,
atoms),
symprec=1.0e-3
)
"Cmce (64)"
Thank you for the quick response. |
Here is the rr trace: I don't really understand how to use rr. Let me know if it is not what you want. |
I was using 0.9.3. I can now confirm the issue is not reproducible for 0.9.2 and seems to be fixed on current main branch. Thank you. |
Thank you for your bug report! A new release will be released immediately! |
I have already avoided using spglib_jll 2.2.0. The following code is directly copied from tests.
Julia info:
The text was updated successfully, but these errors were encountered: