Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eac/fix stages #132

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions src/rail/stages/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import rail

from rail.core import RailEnv
from rail.core.stage import RailStage

from rail.estimation.estimator import CatEstimator
from rail.estimation.classifier import CatClassifier, PZClassifier
Expand Down Expand Up @@ -34,13 +36,6 @@

from rail.tools.table_tools import ColumnMapper, RowSelector, TableConverter


def import_and_attach_all():
"""Import all the packages in the rail ecosystem and attach them to this module"""
RailEnv.import_all_packages()
RailEnv.attach_stages(rail.stages)


__all__ = [
"CatEstimator",
"CatClassifier",
Expand Down Expand Up @@ -79,3 +74,12 @@ def import_and_attach_all():
"RowSelector",
"TableConverter",
]


def import_and_attach_all():
"""Import all the packages in the rail ecosystem and attach them to this module"""
RailEnv.import_all_packages()
RailEnv.attach_stages(rail.stages)
for xx in RailStage.pipeline_stages:
rail.stages.__all__.append(xx)

Loading