QuantumATK Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
QuantumATK W-2024.09 version released on Sep 9, 2024
Home
Help
Search
Login
Register
QuantumATK Forum
»
QuantumATK
»
Installation and License Questions
»
RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata, (Read 9060 times)
0 Members and 1 Guest are viewing this topic.
faxer92
Heavy QuantumATK user
Posts: 27
Country:
Reputation: 0
RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
«
on:
June 18, 2017, 03:12 »
Dear Sir
When execute Prof. Blom's code "cb_plot.py" from
http://quantumwise.com/forum/index.php?topic=3376.0
I get an error:
File ".\build\lib\site-packages\matplotlib-1.5.0-py2.7-win-amd64.egg\matplotlib\mlab.py", line 3421, in griddata
RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata, natgrid must be installed. Either install it from
http://github.com/matplotlib/natgrid
or use interp='linear' instead.
how to I do to make it work?
Regards
«
Last Edit: June 18, 2017, 03:17 by faxer92
»
Logged
Anders Blom
QuantumATK Staff
Supreme QuantumATK Wizard
Posts: 5576
Country:
Reputation: 96
Re: RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
«
Reply #1 on:
June 18, 2017, 09:28 »
Well, the answer is given in the error message, but I have attached an updated version of the script. It's not an exact replica because it also plots the Brillouin zone, but that's probably what you want
Logged
faxer92
Heavy QuantumATK user
Posts: 27
Country:
Reputation: 0
Re: RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
«
Reply #2 on:
June 18, 2017, 12:20 »
Wonderful..!!!! you really do me a big favor.Thank you very much (BTW, your reply is very efficient!!!)
Logged
faxer92
Heavy QuantumATK user
Posts: 27
Country:
Reputation: 0
Re: RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
«
Reply #3 on:
June 18, 2017, 18:12 »
Dear Sir
Would you please show me more examples of learning how to convert (kA,kB) to (kx,ky)? For example, to plot 2D surface (kz=0) in fig3.6 in
http://www.iue.tuwien.ac.at/phd/dhar/node18.html
. Thank you very much.
«
Last Edit: June 18, 2017, 18:16 by faxer92
»
Logged
Jess Wellendorff
QuantumATK Staff
Supreme QuantumATK Wizard
Posts: 933
Country:
Reputation: 29
Re: RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
«
Reply #4 on:
June 19, 2017, 12:53 »
This tutorial should provide an example:
http://docs.quantumwise.com/tutorials/topological_insulator_bi2se3/topological_insulator_bi2se3.html#fermi-surface-and-spin-directions
Logged
faxer92
Heavy QuantumATK user
Posts: 27
Country:
Reputation: 0
Re: RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
«
Reply #5 on:
June 19, 2017, 15:47 »
You guys are really awesome!! that's what I'm looking for, this is fairly good enough to find effective mass difference in real space (even though BZ remains unknown to draw out) , thank you so much!!!
Logged
Jess Wellendorff
QuantumATK Staff
Supreme QuantumATK Wizard
Posts: 933
Country:
Reputation: 29
Re: RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,
«
Reply #6 on:
June 19, 2017, 16:30 »
Thanks for the kind words!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
QuantumATK Forum
»
QuantumATK
»
Installation and License Questions
»
RuntimeError: To use interp='nn' (Natural Neighbor interpolation) in griddata,