biogeme.expressions.audit module

Audit procedure for arithmetic expressions

Michel Bierlaire Fri Mar 28 17:01:01 2025

biogeme.expressions.audit.audit_belongsto(expr, context)[source]

Audits a BelongsTo expression for structural consistency.

Parameters:
  • expr (BelongsTo) – The BelongsTo expression to audit.

  • context (dict[str, list[str]]) – Dictionary to collect error and warning messages.

Return type:

None

biogeme.expressions.audit.audit_default(expr, context)[source]

Default audit function for expressions that do not have a specific audit function.

Parameters:
  • expr (Expression) – The current expression node being audited.

  • context (dict[str, list[str]]) – Dictionary to collect error and warning messages.

Return type:

None

biogeme.expressions.audit.audit_draws(expr, context)[source]
Return type:

None

Parameters:
  • expr (Draws)

  • context (dict[str, list[str]])

biogeme.expressions.audit.audit_expression(expr)[source]

Audits an expression tree for structural consistency.

Parameters:

expr (Expression) – The root expression to audit.

Return type:

AuditTuple

Returns:

A tuple containing two lists: - error_messages: list of error strings. - warning_messages: list of warning strings.

biogeme.expressions.audit.audit_integrate(expr, context)[source]

Audits an Integrate expression for structural consistency.

Parameters:
  • expr (IntegrateNormal) – The Integrate expression to audit.

  • context (dict[str, list[str]]) – Dictionary to collect error and warning messages.

Return type:

None

biogeme.expressions.audit.audit_loglogit(expr, context)[source]

Audits a LogLogit expression for structural consistency.

Parameters:
  • expr (LogLogit) – The LogLogit expression to audit.

  • context (dict[str, list[str]]) – Dictionary to collect error and warning messages.

Return type:

None

biogeme.expressions.audit.audit_montecarlo(expr, context)[source]

Audits a MonteCarlo expression for structural consistency.

Parameters:
  • expr (MonteCarlo) – The MonteCarlo expression to audit.

  • context (dict[str, list[str]]) – Dictionary to collect error and warning messages.

Return type:

None

biogeme.expressions.audit.audit_randomvariable(expr, context)[source]
Return type:

None

Parameters: