build_context

petrophys.reporting.context.build_context

Also available as petrophys.reporting.build_context

build_context(data, *, max_bytes=DEFAULT_MAX_BYTES, category=None)[source]

Build a deterministic JSON-safe summary of a well or workflow result.

This serializer does not invent inputs or rerun an interpretation. Pass an interpretation result when calculated curves and workflow provenance are required. The command-line generator always interprets its well inputs.

Parameters:
  • data (Any)

  • max_bytes (int)

  • category (str | None)

Return type:

dict