aiida_gromacs.utils.inputFile_utils#

Methods for dealing with various types of files and directories that are used in processes and add them to aiida nodes

Functions#

add_subdir_to_node(dict_info, subdir)

Add a subdir to a node.

check_filepath(input_files)

Check if an input is a file or a path.

format_link_label(filename)

Modified from: sphuber/aiida-shell

Module Contents#

add_subdir_to_node(dict_info, subdir)[source]#

Add a subdir to a node.

check_filepath(input_files)[source]#

Check if an input is a file or a path.

Parameters:

input_files (list) – The list of inputs to check

Returns:

List of files and list of subdirs

Modified from: sphuber/aiida-shell Format the link label from a given filename with prefix. Valid link labels can only contain alphanumeric characters and underscores, without consecutive underscores. So all characters that are not alphanumeric or an underscore are converted to underscores, where consecutive underscores are merged into one. Additional: Label cannot start with a number or underscore.

Parameters:

filename (str) – The filename.

Returns:

The link label.

Return type:

str