Skip to content

Commit

Permalink
Removed ParamModel, ParamDataset and the like. Reimplemented with new…
Browse files Browse the repository at this point in the history
… solution.

All tests now pass!
  • Loading branch information
sveinugu committed Sep 13, 2024
1 parent 36b8188 commit 02af71d
Show file tree
Hide file tree
Showing 16 changed files with 379 additions and 824 deletions.
60 changes: 0 additions & 60 deletions scripts/param.py

This file was deleted.

115 changes: 0 additions & 115 deletions scripts/param_new.py

This file was deleted.

14 changes: 2 additions & 12 deletions src/omnipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
LinearFlow,
LinearFlowTemplate)
from omnipy.compute.task import Task, TaskTemplate
from omnipy.data.dataset import Dataset, ListOfParamModelDataset, MultiModelDataset, ParamDataset
from omnipy.data.model import ListOfParamModel, Model, ParamModel
from omnipy.data.dataset import Dataset, MultiModelDataset
from omnipy.data.model import Model
from omnipy.data.param import bind_adjust_dataset_func, bind_adjust_model_func, ParamsBase
from omnipy.hub.runtime import runtime
from omnipy.modules.general.models import (Chain2,
Expand Down Expand Up @@ -119,9 +119,7 @@
JoinItemsModel,
JoinLinesModel,
SplitLinesToColumnsModel,
SplitLinesToColumnsModelNew,
SplitToItemsModel,
SplitToItemsModelNew,
SplitToLinesModel,
StrModel)
from omnipy.modules.raw.tasks import (concat_all,
Expand All @@ -143,8 +141,6 @@
transpose_columns_with_data_files)
from omnipy.util.contexts import print_exception

# if typing.TYPE_CHECKING:

ROOT_DIR = os.path.dirname(os.path.abspath(__file__))

__all__ = [
Expand All @@ -158,12 +154,8 @@
'Task',
'TaskTemplate',
'Dataset',
'ParamDataset',
'ListOfParamModelDataset',
'MultiModelDataset',
'Model',
'ParamModel',
'ListOfParamModel',
'FlattenedIsaJsonDataset',
'FlattenedIsaJsonModel',
'IsaJsonModel',
Expand Down Expand Up @@ -250,10 +242,8 @@
'SplitToLinesModel',
'JoinLinesModel',
'SplitToItemsModel',
'SplitToItemsModelNew',
'JoinItemsModel',
'SplitLinesToColumnsModel',
'SplitLinesToColumnsModelNew',
'JoinColumnsToLinesModel',
'StrModel',
'TableOfPydanticRecordsDataset',
Expand Down
8 changes: 2 additions & 6 deletions src/omnipy/_dynamic_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
LinearFlowTemplate)
from .compute.job import JobTemplateMixin
from .compute.task import Task, TaskTemplate
from .data.dataset import Dataset, ListOfParamModelDataset, MultiModelDataset, ParamDataset
from .data.model import ListOfParamModel, Model, ParamModel
from .data.dataset import Dataset, MultiModelDataset
from .data.model import Model
from .data.param import bind_adjust_dataset_func, bind_adjust_model_func, ParamsBase
from .hub.runtime import runtime
from .util.contexts import print_exception
Expand All @@ -57,15 +57,11 @@
'Task',
'TaskTemplate',
'Dataset',
'ParamDataset',
'ListOfParamModelDataset',
'MultiModelDataset',
'ParamsBase',
'bind_adjust_model_func',
'bind_adjust_dataset_func',
'Model',
'ParamModel',
'ListOfParamModel',
'print_exception',
]
_all_element_names = set(__all__)
Expand Down
Loading

0 comments on commit 02af71d

Please sign in to comment.