Name

nlPrint Print the object in a nicely formatted way to screen or, more in general, to the standard output.

Synopsis

Namespace: ATK.KohnSham or ATK.TwoProbe
standard output nlPrint(object)

Description

The function nlPrint() is a sophisticated way of printing your objects to the standard output. This is done in a well-arranged style, which makes possible and easy the inspection of the objects of NanoLanguage. The formatted output produced by this function is compatible with the input format of most third-party 2D plotting software products.

List of arguments

object

The object to printed to standard output. It can be one of the following:

Default: None

Usage examples

from ATK.KohnSham import *

molecule = MoleculeConfiguration(...)
method = KohnShamMethod(...)
scf = method.apply(molecule)

# Calculate molecular spectrum 
spectrum = calculateMolecularEnergySpectrum(scf)

# Print it to screen
nlPrint(spectrum)

Notes

If the given object is not supported, the function nlPrint() will use Python own printing functions instead.