Author Topic: How use nlread get the pldos information from the pldos.hdf5 file?  (Read 3595 times)

0 Members and 1 Guest are viewing this topic.

Offline Jichao Dong

  • New QuantumATK user
  • *
  • Posts: 1
  • Country: cn
  • Reputation: 0
    • View Profile
could anyone can help the python code of nlread to get the pldos information from the pldos.hdf5 file?
Thank you very VERY much!

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5573
  • Country: dk
  • Reputation: 95
    • View Profile
    • QuantumATK at Synopsys
Like any other object, you read it as
pdos = nlread("myfile.,hdf5", ProjectedLocalDensityOfStates)[-1]
where the -1 index ensure you pick the last object of this class added to the file (or use 0 or any other index in case there are several and you want a specific one).