ProdValidator

This module contains methods for the validation of production definitions

class DIRAC.ProductionSystem.Utilities.ProdValidator.ProdValidator

Bases: object

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

checkMatchQuery(mq, mqParent)

Check the logical intersection between the two metaqueries

Parameters:
  • mq (dict) – a dictionary of the MetaQuery to be checked against the mqParent
  • mqParent (dict) – a dictionary of the parent MetaQuery to be checked against the mq
checkTransDependency(transID, parentTransID)

Check if the transformation and the parent transformation are linked

Parameters:
  • transID (int) – the TransformationID
  • parentTransID (int) – the parent TransformationID
checkTransStatus(transID)
Check if the status of the transformation is valid for the transformation to be added to a production.
New is the only valid status
Parameters:transID (int) – the TransformationID
checkformatQuery(MetaQueryDict)

Check the format query and transform all dict values in dict for uniform treatment

Parameters:MetaQueryDict (dict) – a dictionary of the MetaQuery
compareValues(value, parentValue)

Very simple comparison. To be improved

Parameters:
  • value (str) – a meta data value (str, int, …) to be compared with the parentValue
  • parentValue (str) – a meta data value (str, int, …) to be compared with value