aeppl.cumsum.MeasurableCumsum.c_init_code_struct#

MeasurableCumsum.c_init_code_struct(node, name, sub)#

Return an Apply-specific code string to be inserted in the struct initialization code.

Parameters
  • node (Apply) – The node in the graph being compiled.

  • name (str) – A unique name to distinguish variables from those of other nodes.

  • sub (dict of str) – A dictionary of values to substitute in the code. Most notably it contains a 'fail' entry that you should place in your code after setting a Python exception to indicate an error.

Return type

str