describe¶
petrophys.function_schema.describe
- describe(function)[source]¶
Describe a public analysis function’s parameters as plain data.
- Parameters:
function (callable) – A function of
SCOPE.- Returns:
name,module,summary,samplewiseandparameters: one dict per parameter in signature order, withname,kind,required,defaultanddescription, andcurve,unit,choices,manyorrolewhere they apply. A function that is not declared haskindNone for every parameter.- Return type:
Examples
>>> from petrophys.function_schema import describe >>> from petrophys.interpretation.saturation.archie import archie >>> {p["name"]: p["kind"] for p in describe(archie)["parameters"]}["rw"] 'curve'