root_mcp.common.root_availability module

Detection and availability checking for native ROOT/PyROOT.

root_mcp.common.root_availability.get_root_features()[source]

Get a dict of optional ROOT feature availability.

Example return:

{“rdataframe”: True, “roofit”: True, “tmva”: False, “minuit2”: True}

Returns empty dict if ROOT is not available. Result is cached after the first call.

Return type:

dict[str, bool]

root_mcp.common.root_availability.get_root_version()[source]

Get the ROOT version string (e.g. ‘6.32/02’), or None if not available.

Result is cached after the first call.

Return type:

str | None

root_mcp.common.root_availability.is_root_available()[source]

Check whether native ROOT/PyROOT is importable.

Result is cached after the first call.

Return type:

bool

root_mcp.common.root_availability.reset_cache()[source]

Reset the cached probe results.

Useful for testing or after environment changes.

Return type:

None