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 a subdir to a node. |
|
Check if an input is a file or a path. |
|
Modified from: sphuber/aiida-shell |
Module Contents#
- 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
- format_link_label(filename)[source]#
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.