httk.io.vasp.outputs

Lazy directory-level access to a VASP calculation’s registered files.

VASPOutputs is deliberately not a registered reader: a directory is a container of inputs, not one VASP file. Payload-returning properties retain no open handles; the lazy OUTCAR and XDATCAR objects are owned and closed here.

Classes

VASPOutputs

Lazily resolve standard VASP files in a calculation directory.

Module Contents

class httk.io.vasp.outputs.VASPOutputs(directory)[source]

Lazily resolve standard VASP files in a calculation directory.

File lookup probes each registered compression suffix after the plain filename. Payload readers are created only when their properties are first accessed. The lazy OUTCAR and XDATCAR children are owned here and closed by close(); payload mappings do not retain open handles.

Parameters:

directory (str | os.PathLike[str]) – Filesystem directory containing VASP output files.

property closed: bool[source]

Whether this directory view has been closed.

close()[source]

Close owned lazy file objects; repeated calls are harmless.

property poscar: dict[str, Any] | None[source]

Return the lazily loaded POSCAR payload, or None when absent.

property contcar: dict[str, Any] | None[source]

Return the lazily loaded CONTCAR payload, or None when absent.

property outcar: httk.io.vasp.outcar.OutcarFile | None[source]

Return the owned lazy OUTCAR reader, or None when absent.

property xdatcar: httk.io.vasp.xdatcar.XdatcarFile | None[source]

Return the owned lazy XDATCAR reader, or None when absent.

property oszicar: dict[str, Any] | None[source]

Return the lazily loaded OSZICAR payload, or None when absent.

property potcar: dict[str, Any] | None[source]

Return the lazily loaded POTCAR summary, or None when absent.