Author Topic: DeviceLCAOBuilder' object has no attribute 'createMatrixCalculator'  (Read 1454 times)

0 Members and 1 Guest are viewing this topic.

Offline MolFET93

  • Regular QuantumATK user
  • **
  • Posts: 5
  • Country: it
  • Reputation: 0
    • View Profile
Dear ATK community,

in running into trouble with the function vectorToGrid. In particular by typing:

vectorToGrid(eigenvector, device_configuration)

the following error occurs:

File "utilities.py", line 17, in vectorToGrid
matrix_calculator = builder.createMatrixCalculator()
AttributeError: 'DeviceLCAOBuilder' object has no attribute 'createMatrixCalculator'

Attached the script I'm running in 2021 version.
Any help?

I really thank you,
Best regards


Online Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5411
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
What is the source of the utilities.py script, is it from some tutorial?

Try replacing it with
builder.createHamiltonianCalculator()
but if we changed that name, maybe other things in this script will break too. This is not officially supported functionality (which is why we change it between versions sometimes, when we restructure the code) but if this provides some useful functionality for you, let us know where you got the script, probably it needs to be updated.
« Last Edit: April 6, 2022, 21:08 by Anders Blom »