Skip to content

Commit 4acddb8

Browse files
committed
feat(distributions): now the strategy options are not rewritten, the methods handle edge cases correctly, and the dead code is removed
1 parent 073b779 commit 4acddb8

16 files changed

Lines changed: 1284 additions & 631 deletions

File tree

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Computations subpackage.
33
4-
Provides descriptor abstractions, fitter/evaluator implementations,
4+
Provides option and descriptor abstractions, fitter/evaluator implementations,
55
helper utilities, and a registry for matching fitter descriptors
66
to distribution characteristics.
77
"""
@@ -12,32 +12,23 @@
1212
__copyright__ = "Copyright (c) 2025 PySATL project"
1313
__license__ = "SPDX-License-Identifier: MIT"
1414

15-
from .base import *
16-
from .base import __all__ as _base_all
1715
from .continuous import *
1816
from .continuous import __all__ as _continuous_all
17+
from .descriptors import *
18+
from .descriptors import __all__ as _descriptors_all
1919
from .discrete import *
2020
from .discrete import __all__ as _discrete_all
21+
from .options import *
22+
from .options import __all__ as _options_all
2123
from .registry import *
2224
from .registry import __all__ as _registry_all
2325

24-
ALL_FITTER_DESCRIPTORS: list[FitterDescriptor] = [ # noqa: F405
25-
FITTER_PDF_TO_CDF_1C, # noqa: F405
26-
FITTER_CDF_TO_PDF_1C, # noqa: F405
27-
FITTER_CDF_TO_PPF_1C, # noqa: F405
28-
FITTER_PPF_TO_CDF_1C, # noqa: F405
29-
FITTER_PMF_TO_CDF_1D, # noqa: F405
30-
FITTER_CDF_TO_PMF_1D, # noqa: F405
31-
FITTER_CDF_TO_PPF_1D, # noqa: F405
32-
FITTER_PPF_TO_CDF_1D, # noqa: F405
33-
]
34-
3526
__all__ = [
36-
*_base_all,
27+
*_options_all,
28+
*_descriptors_all,
3729
*_continuous_all,
3830
*_discrete_all,
3931
*_registry_all,
40-
"ALL_FITTER_DESCRIPTORS",
4132
]
4233

43-
del _base_all, _continuous_all, _discrete_all, _registry_all
34+
del _options_all, _descriptors_all, _continuous_all, _discrete_all, _registry_all

0 commit comments

Comments
 (0)