Skip to content

How to use pymatgen.command_line.vampire_caller module.When I use vampire_caller it report an error AttributeError. #2890

Answered by janosh
xbunax asked this question in Q&A
Discussion options

You must be logged in to vote

If you look at the HeisenbergMapper doc string, it expects a list of ordered Structures as it's 1st argument:

ordered_structures (list): Structure objects with magmoms.

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 structure or struct rather than Structure.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xbunax
Comment options

@xbunax
Comment options

Answer selected by janosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants