-
I use Structure = structure.Structure.from_file(path)
hmMn=HeisenbergMapper(Structure, [0.5, 0.5],cutoff=1.0)
vc = VampireCaller(ordered_structures=Structure, energies=[0,0,1],hm=hmMn)
vc._create_ucf() But when I use this structure parameters in class
If someone know how to solve this, I will be grateful. |
Beta Was this translation helpful? Give feedback.
Answered by
janosh
Mar 13, 2023
Replies: 1 comment 2 replies
-
If you look at the So try changing: - hmMn=HeisenbergMapper(Structure, [0.5, 0.5],cutoff=1.0)
+ hmMn=HeisenbergMapper([Structure], [0.5, 0.5],cutoff=1.0) Also, I'd advise against using the name of a class as variable name. Better to use lower case |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
janosh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you look at the
HeisenbergMapper
doc string, it expects a list of orderedStructure
s as it's 1st argument:pymatgen/pymatgen/analysis/magnetism/heisenberg.py
Line 56 in 5c05f30
So try changing:
Also, I'd advise against using the name of a class as variable name. Better to use lower case
structure
orstruct
rather thanStructure
.