Skip to content

Commit

Permalink
chore(exp): cleanup (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Oct 16, 2024
1 parent 6a6f57c commit 2652f92
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 36 deletions.
36 changes: 0 additions & 36 deletions openfisca_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,36 +0,0 @@
"""The most widely adopted free and open-source engine to write rules as code."""

from openfisca_core.commons import (
apply_thresholds,
average_rate,
concat,
marginal_rate,
switch,
)

from . import types
from .experimental import MemoryConfig
from .simulations import (
Simulation,
SimulationBuilder,
calculate_output_add,
calculate_output_divide,
check_type,
transform_to_strict_syntax,
)

__all__ = [
"MemoryConfig",
"Simulation",
"SimulationBuilder",
"apply_thresholds",
"average_rate",
"calculate_output_add",
"calculate_output_divide",
"check_type",
"concat",
"marginal_rate",
"switch",
"transform_to_strict_syntax",
"types",
]
9 changes: 9 additions & 0 deletions openfisca_core/formula_helpers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The formula_helpers module has been deprecated since X.X.X,
# and will be removed in the future.
#
# The helpers have been moved to the commons module.
#
# The following are transitional imports to ensure non-breaking changes.
# Could be deprecated in the next major release.

from openfisca_core.commons import apply_thresholds, concat, switch # noqa: F401
9 changes: 9 additions & 0 deletions openfisca_core/memory_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The memory config module has been deprecated since X.X.X,
# and will be removed in the future.
#
# Module's contents have been moved to the experimental module.
#
# The following are transitional imports to ensure non-breaking changes.
# Could be deprecated in the next major release.

from openfisca_core.experimental import MemoryConfig # noqa: F401
9 changes: 9 additions & 0 deletions openfisca_core/rates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The formula_helpers module has been deprecated since X.X.X,
# and will be removed in the future.
#
# The helpers have been moved to the commons module.
#
# The following are transitional imports to ensure non-breaking changes.
# Could be deprecated in the next major release.

from openfisca_core.commons import average_rate, marginal_rate # noqa: F401
16 changes: 16 additions & 0 deletions openfisca_core/simulation_builder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The simulation builder module has been deprecated since X.X.X,
# and will be removed in the future.
#
# Module's contents have been moved to the simulation module.
#
# The following are transitional imports to ensure non-breaking changes.
# Could be deprecated in the next major release.

from openfisca_core.simulations import ( # noqa: F401
Simulation,
SimulationBuilder,
calculate_output_add,
calculate_output_divide,
check_type,
transform_to_strict_syntax,
)

0 comments on commit 2652f92

Please sign in to comment.