Author Topic: Printing information about basisSet  (Read 2124 times)

0 Members and 1 Guest are viewing this topic.

Offline Dhirendra

  • Heavy QuantumATK user
  • ***
  • Posts: 57
  • Country: in
  • Reputation: 0
    • View Profile
Printing information about basisSet
« on: December 16, 2015, 06:54 »
Hi, I want to print the information about the basis set used in an older .nc file. I tried nlprint(bulk_configuration.calculator().basisSet()) or nlprint(bulk_configuration) but its of no use.  Amy way how to do in? More specifically I want to know which predefined basis set(HGH tier4, HGH tier8 or doublezetapolarized) was used.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5405
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: Printing information about basisSet
« Reply #1 on: December 16, 2015, 07:28 »
The complete basis set can be printed using
Code: python
basis_set = bulk_configuration.calculator().basisSet()
for bs in basis_set:
    print bs._serialize()
A more advanced version, which will help you identify the basis set:
Code: python
from NL.Calculators.LCAOCalculator.BaseLCAOCalculator import basisSetToScript
basis_set = bulk_configuration.calculator().basisSet()
print basisSetToScript(basis_set, [LDABasis.DoubleZetaPolarized])
« Last Edit: December 16, 2015, 07:40 by Anders Blom »