aim2dat.io.utils

Utils for read and write functions.

Module Contents

Functions

custom_open(file[, mode])

Open files by distinguishing custom file classes (such as AiiDA's SingleFileData) with an

read_multiple(pattern[, is_read_strct_method, ...])

Add support for a list of multiple files or folder paths (decorator).

read_structure(pattern[, preset_kwargs])

Decorate functions that parse structure(s).

aim2dat.io.utils.custom_open(file, mode='r', **kwargs)[source]

Open files by distinguishing custom file classes (such as AiiDA’s SingleFileData) with an open function.

aim2dat.io.utils.read_multiple(pattern, is_read_strct_method=False, preset_kwargs={})[source]

Add support for a list of multiple files or folder paths (decorator).

aim2dat.io.utils.read_structure(pattern, preset_kwargs={})[source]

Decorate functions that parse structure(s).