INNER CODE UNIT · Python

_find_addons

sdv-dev/Copulas · copulas/__init__.py:59

def _find_addons():
    """Find and load all copulas add-ons."""
    group = 'copulas_modules'
    try:
        eps = entry_points(group=group)
    except TypeError:
        # Load-time selection requires Python >= 3.10 or importlib_metadata >= 3.6
        eps = entry_points().get(group, [])

    for entry_point in eps:
        try:
            addon = entry_point.load()
        except Exception as e:  # pylint: disable=broad-exception-caught
            msg = f'Failed to load "{entry_point.name}" from "{entry_point.value}" with error:\n{e}'
            warnings.warn(msg)
            continue

        try:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…