utils

Full name: ase2sprkkr.asr.core.utils

Description

Implements useful utility functions needed for several asr features.

Functions

parse_dict_string: Convert a string-serialized dict, return a real dict.

Functions

chdir(folder[, create, empty])

dct_to_object(dct)

Convert dictionary to object.

encode_json(data)

file_barrier(paths[, world, delete])

Context manager for writing a file.

get_dep_tree(name[, reload])

get_recipe_from_name(name)

md5sum(filename)

parse_dict_string(string[, dct])

Convert a string-serialized dict, return a real dict.

parse_mod_func(name)

read_json(filename)

Read json file.

recursive_update(dct, defaultdct)

Recursively update defualtdct with values from dct.

singleprec_dict(dct)

unlink(path[, world])

Safely unlink path (delete file or symbolic link).

write_file(filename, text)

write_json(filename, data)