Skip to content

When use lgf.compute_structure_environments module. And error " 'MaterialsDoc' object is not subscriptable #2918

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

You must be logged in to vote

Please provide a runnable code snippet that triggers the error. From your screenshot, it looks like you're passing in a MPRester MaterialsDoc rather than a Structure instance to LocalGeometryFinder. If your MaterialsDoc contains a structure, try passing in doc['structure'] instead.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Aiartanis
Comment options

@janosh
Comment options

@Aiartanis
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
question Questions about functionality and design choices
2 participants