Dear Sir,
I was trying to obtain the
atoms in the central region for nanotube using the below mentioned code:
from ATK.TwoProbe import *
from displayCentralRegion import displayCentralRegionAtoms
vnl_file=VNLFile("CNT.vnl")
atomic_configuration_dict = vnl_file.readAtomicConfigurations()
atomic_configuration = atomic_configuration_dict["twoprobe_configuration"]
displayCentralRegionAtoms(atomic_configuration)
then i tried using code mentioned below, but got errors:
...
vnlfile=VNLFile("file.vnl")
configs=vnlfile.readAtomicConfigurations()
twoprobe_config=configs[configs.keys()[0]]
I get:
File "Li_SW15_2-Trans.Spec.py", line 9, in ?
twoprobe_config=configs[configs.keys()[0]]
IndexError: list index out of range
Traceback (most recent call last):
And, when I try to get the configuration name using
...
vnlfile=VNLFile("file.vnl")
configs=vnlfile.readAtomicConfigurations()
print configs.keys()
I get only []
How do i obtain the central region atoms with periodic_atom_configuration such as in nanotubes?