configuration

Default configuration and cached accessor for the global characteristic registry.

Notes

No auto-configuration happens in the constructor. The module provides characteristic_registry() with @lru_cache that builds the singleton instance and seeds it with a set of edges.

At configuration time, to_computation_method() is called on each FitterDescriptor to build a FitterMethod (a lightweight wrapper that holds the fitter callable) and store it as a graph edge. The actual fitter(distribution, **options) call - the expensive precomputation - happens on demand when the strategy resolves a path via query_method.

Lookup of fitter descriptors by (target, sources, tags) is delegated to FitterRegistry: configuration does not depend on individual descriptor identifiers but only on the (source, target) pairs and the constraint tag set they are expected to satisfy.

pysatl_core.distributions.registry.configuration.characteristic_registry()[source]

Return a cached, configured characteristic registry (singleton instance). :rtype: CharacteristicRegistry

Notes

  • The singleton is created via CharacteristicRegistry.__new__().

  • Configuration is applied exactly once per process via LRU caching.

  • Users may build and configure a separate (unconfigured) registry by instantiating CharacteristicRegistry() directly.

Return type:

CharacteristicRegistry

pysatl_core.distributions.registry.configuration.reset_characteristic_registry()[source]

Reset the cached characteristic registry.

Return type:

None