ParameterDeclaration

petrophys.function_schema.ParameterDeclaration

class ParameterDeclaration(kind, curve=None, unit=None, choices=(), many=False, role=None)[source]

What one parameter takes.

Parameters:
  • kind (str) – One of KINDS.

  • curve (str, optional) – The standard curve a curve or curve_name parameter is, or whose quantity a value is.

  • unit (str, optional) – The unit of a value, values or curve parameter.

  • choices (tuple of str) – The accepted values of a choice parameter.

  • many (bool) – A curve_name, text or choice parameter that takes a list.

  • role (str, optional) – top or bottom, for a window parameter; lithology for a choice that takes the rock’s lithology or matrix (a caller may fill it sample by sample from the interpreted lithology, petrophys.interpretation.lithology.matrix_inference.interpreted_lithology_labels()).

Attributes

kind: str
curve: str | None = None
unit: str | None = None
choices: Tuple[str, ...] = ()
many: bool = False
role: str | None = None