In my MullikenPopulation.txt ,there are 53 atoms.
this is my code:
# -------------------------------------------------------------
# Analysis from File
# -------------------------------------------------------------
mulliken_population = nlread('In-MoS2.nc', object_id='gID011')[0]
nlprint(mulliken_population)
#print partial occupations
print 'In ',mulliken_population.atoms()[30],
print ' | ',mulliken_population.orbitals()[30]
print
print 'S ',mulliken_population.atoms()[36],
print ' | ',mulliken_population.orbitals()[36]
print
#print mulliken population of bond
print 'In-S bond ',mulliken_population.bond(30,36)
# -------------------------------------------------------------
# Error file
# -------------------------------------------------------------
The error file is:
Traceback (most recent call last):
File "bond.py", line 10, in <module>
print 'In ',mulliken_population.atoms()[30],
IndexError: list index out of range