validator Package¶
controlFileValidator
Module¶
-
AdaptivePELE.validator.controlFileValidator.
validate
(control_file)[source]¶ Validate an AdaptivePELE control file to ensure that there are no errors
- Parameters
controlFile (str) – Adaptive sampling control file
- Raises
ValueError – If a error is found in the control file
-
AdaptivePELE.validator.controlFileValidator.
validateBlock
(blockName, controlFileBlock)[source]¶ Validate the a block of the control file to ensure that there are no errors. Raise a warning if an error is found.
- Parameters
blockName (dict) – Dictionary containing the parameters and possible types for the block
controlFileBlock (dict) – Dictionary containing the parameters specified in the control file for the block
- Returns
bool – Wheter and error has been found in a block block
-
AdaptivePELE.validator.controlFileValidator.
validateGeneralBlock
(blockName, controlFileBlock)[source]¶ Validate the generalParams block of the control file to ensure that there are no errors. Raise a warning if an error is found.
- Parameters
blockName (dict) – Dictionary containing the parameters and possible types for the block
controlFileBlock (dict) – Dictionary containing the parameters specified in the control file for the block
- Returns
bool – Wheter and error has been found in the generalParams block