modulegraphregister module
Module modulegraphregister manage registration of the various ModuleGraph implementations
- class modulegraph.modulegraphregister.ModuleGraphRegister(register_file_path='')
Bases:
object- getARegisteredClass(aRegisterClassEnum)
From a class identifier return the class object defined in the register with the key attribute “customimplementation”
- Parameters:
aRegisterClassId (str) – a class id name
- Returns:
a class object
- getARegisteredClassInfo(aRegisterClassEnum)
Return register info for the class identifier
- Parameters:
aRegisterClassId (str) – a class id name
- Returns:
a dict of info
- Return type:
dict
- getARegisteredNodeClass(self, aNodeId)
From a node identifier return the class object defined in the register with the key attribute “customimplementation”
- Parameters:
aNodeId (str) – a node id name
- Returns:
a class object
- getARegisteredNodeInfo(self, aNodeId)
Return register info for the node identifier
- Parameters:
aNodeId (str) – a node id name
- Returns:
a dict of info
- Return type:
dict
- getARegisteredNodeOperandInfo(aNodeId, aOperandName)
Return operand info for a given node and operand name
- Parameters:
aNodeId (str) – a node id
aOperandName (str) – an operand name
- Returns:
info dict
- Return type:
dict
- getARegisteredNodeOutputInfo(aNodeId, aOutputName)
Return output info for a given node and output name
- Parameters:
aNodeId (str) – a node id
aOutputName (str) – output name
- Returns:
dict info
- Return type:
dict
- getARegisteredOperandClass(aOperandId)
Return the operand class object from an operand type, defined by the key “customimplementation”
- Parameters:
aOperandIdType (str) – operand type, Float, Bool …
- Returns:
a custom operand class object
- getARegisteredOperandInfo(aOperandId)
Return operand definition info by its type
- Parameters:
aOperandIdType (str) – operand type, Float, Bool …
- Returns:
dict of info
- Return type:
dict
- setRegister(file_path)
- Parameters:
file_path (str) – path of the json register file
- validRegister()
- writeDataToJson(aFilePath)
Write data to a json file
- Parameters:
aFilePath (str) – path for the json file path location