Author Topic: An error about 'mulliken-analysis.py' document  (Read 3428 times)

0 Members and 1 Guest are viewing this topic.

Offline NaKa

  • New QuantumATK user
  • *
  • Posts: 2
  • Country: tr
  • Reputation: 0
    • View Profile
An error about 'mulliken-analysis.py' document
« on: January 25, 2018, 15:23 »
Hi,

I tried to analyse .nc file of my run according to 'mulliken-analysis.py' document given on page Atomic Scale Capacitance, but have some problems.

Actually, I did it before by an older version of VNL, I guess 2015.  Now I try by 2017 version and get an error message like;

Traceback (most recent call last):
  File "ANALYSIS_mulliken.py", line 26, in <module>
    initial_population = realVectorToNumpy(builder.neutralAtomicOccupations())
  File "zipdir/NL/ComputerScienceUtilities/Functions.py", line 34, in realVectorToNumpy
TypeError: in method 'realVectorToNumpy', argument 1 of type 'RealVector const &'[/size]

Relevant part of the script is;
"# Get the atomic occupations from the zero-bias config
calculator = configuration_list[0].calculator()
builder = calculator._builder()(configuration_list[0], calculator)
initial_population = realVectorToNumpy(builder.neutralAtomicOccupations())"

Can you please help, how can I fixed it?
« Last Edit: January 25, 2018, 15:27 by Nazan Kara »

Offline Petr Khomyakov

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1290
  • Country: dk
  • Reputation: 25
    • View Profile
Re: An error about 'mulliken-analysis.py' document
« Reply #1 on: January 26, 2018, 10:00 »
Do I understand correctly that you have been trying reproducing the results in this tutorial https://docs.quantumwise.com/tutorials/atomic-scale_capacitance/atomic-scale_capacitance.html, and you have used the  'mulliken-analysis.py' script from that tutorial in ATK-2017?

Offline NaKa

  • New QuantumATK user
  • *
  • Posts: 2
  • Country: tr
  • Reputation: 0
    • View Profile
Re: An error about 'mulliken-analysis.py' document
« Reply #2 on: January 26, 2018, 12:16 »
Yes it is right. Actually I have tried it for a similar structure, set by gold atoms and graphene. Does it matter?