Skip to content

checkfilesfolderstest

checkfilesfolderstest

Module for CheckFilesFoldersTest

Classes

CheckFilesFoldersTest

CheckFilesFoldersTest(files=None, folders=None)

Bases: ExperimentTest

ExperimentTest if files and folders are located in the experiment Parameters


files: Optional[List[str]], default None All required files with relative path to experiment root folders: Optional[List[str]], default None All required folders with relative path to experiment root

Source code in niceml/experiments/experimenttests/checkfilesfolderstest.py
def __init__(
    self, files: Optional[List[str]] = None, folders: Optional[List[str]] = None
):
    """
    ExperimentTest if files and folders are located in the experiment
    Parameters
    ----------
    files: Optional[List[str]], default None
        All required files with relative path to experiment root
    folders: Optional[List[str]], default None
        All required folders with relative path to experiment root
    """
    self.files = [] if files is None else files
    self.folders = [] if folders is None else folders
Functions