pymatgen-analysis-diffusion icon indicating copy to clipboard operation
pymatgen-analysis-diffusion copied to clipboard

[Bug]: get_arrhenius_plot() failed

Open LiangWenshuo1118 opened this issue 1 year ago • 0 comments

Email (Optional)

No response

Version

v2023.8.15

Which OS(es) are you using?

  • [ ] MacOS
  • [ ] Windows
  • [X] Linux

What happened?

I encountered a TypeError when trying to use the get_arrhenius_plot function from the pymatgen.analysis.diffusion.analyzer module.

Code snippet

https://github.com/materialsvirtuallab/Data-driven-First-Principles-Methods-for-the-Study-and-Design-of-Alkali-Superionic-Conductors/blob/master/notebooks/3%20-%20Diffusivity%20and%20Ionic%20Conductivity.ipynb

Log output

File "/home/lws/Desktop/SSE/analysis.py", line 22, in <module>
    get_arrhenius_plot(temperatures, diffusivities).savefig("arrhenius_plot.png")
File "/home/lws/anaconda3/envs/deepmd/lib/python3.10/site-packages/pymatgen/analysis/diffusion/analyzer.py", line 1099, in get_arrhenius_plot
    ax = plt.axes()
TypeError: 'Axes' object is not callable

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

LiangWenshuo1118 avatar Dec 01 '23 07:12 LiangWenshuo1118