Author Topic: error in PDOS calculation  (Read 3541 times)

0 Members and 1 Guest are viewing this topic.

Offline beauyy

  • Heavy QuantumATK user
  • ***
  • Posts: 53
  • Country: cn
  • Reputation: 0
    • View Profile
error in PDOS calculation
« on: December 8, 2022, 13:11 »
Dear all,

I built a script to customize the PDOS of a spin-polarized nanoribbon. But an error occurs.
How can I modify the PDOS script to make it run correctly.
The error information is as follows:

Traceback (most recent call last):
  File "/public/home/heyy/ATKJOBS/221208-LGvHMutP/pdos-z-GN-1.py", line 126, in <module>
Traceback (most recent call last):
  File "/public/home/heyy/ATKJOBS/221208-LGvHMutP/pdos-z-GN-1.py", line 126, in <module>
Traceback (most recent call last):
  File "/public/home/heyy/ATKJOBS/221208-LGvHMutP/pdos-z-GN-1.py", line 126, in <module>
    projection_list = Projection(atom=[Carbon], l_quantum_numbers=[1], m_quantum_numbers=[-1, 0, 1], spin=Spin.up)
AttributeError: 'module' object has no attribute 'up'
    projection_list = Projection(atom=[Carbon], l_quantum_numbers=[1], m_quantum_numbers=[-1, 0, 1], spin=Spin.up)
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 2

Offline gozde

  • Heavy QuantumATK user
  • ***
  • Posts: 29
  • Country: tr
  • Reputation: 0
    • View Profile
Re: error in PDOS calculation
« Reply #1 on: December 8, 2022, 13:54 »
Hi,

Have you tried spin=Spin.Up with capital U instead of spin=Spin.up ?

Offline beauyy

  • Heavy QuantumATK user
  • ***
  • Posts: 53
  • Country: cn
  • Reputation: 0
    • View Profile
Re: error in PDOS calculation
« Reply #2 on: December 8, 2022, 14:04 »
Thanks. You are right.