bayespecon.logdet.resolve_logdet_method

bayespecon.logdet.resolve_logdet_method(method, *, n)[source]

Validate method and auto-select when None.

Parameters:
method

User-supplied method name, or None for auto-selection.

n

Spatial dimension; used by auto-selection.

Returns:

Canonical method name (always one of VALID_LOGDET_METHODS).

Return type:

str

Raises:

ValueError – If method is not a recognised method name.