Open Anny-tech opened 2 years ago
Hi @Anny-tech, thanks for the report. To be able to reproduce, could you supply the input structure too?
My suggestions are:
st1_1.diff(st2_1)
first. This calls the .diff()
method which needs to work for the drawing method to work, and if this gives an error it may be more helpful.Hi @mkhorton , thanks for the reply.
Ok, for this application maybe StructureMatcher
maybe more appropriate. This can compare structures based on atomic co-ordinates and tell you if they are the same structure or not. The StructureGraph.diff
methods are more for differences in number of bonds; it's possible for two different polymorphs (with different symmetries) to have the same bonds/graphs if their respective atoms are in the same co-ordination environments.
Describe the bug 'diff' parameter not working in 'draw_graph_to_file' from StructureGraph class of the pymatgen.analysis.graphs module
To Reproduce Steps to reproduce the behavior:
Screenshots
Desktop (please complete the following information):