class InputVariable(name, value, units='', valperline=3)[source]

Bases: object

An Abinit input variable.

property basename

Return the name trimmed of any dataset index.

property dataset

Return the dataset index in string form.

format_list(values, floatdecimal=0)[source]

Format a list of values into a string. The result might be spread among several lines.

format_list2d(values, floatdecimal=0)[source]

Format a list of lists.

format_scalar(val, floatdecimal=0)[source]

Format a single numerical value into a string with the appropriate number of decimal.


Return the value.

property name
property units

Return the units.