Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
fix modin exposed type checked (#509)
Browse files Browse the repository at this point in the history
* fix modin exposed type checked

(cherry picked from commit db774f5)

* change version to 2.1.2
  • Loading branch information
jrobinAV authored Mar 8, 2023
1 parent 7589972 commit f139284
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/taipy/core/config/data_node_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ class DataNodeConfig(Section):

_EXPOSED_TYPE_KEY = "exposed_type"
_EXPOSED_TYPE_PANDAS = "pandas"
_EXPOSED_TYPE_MODIN = "modin"
_EXPOSED_TYPE_NUMPY = "numpy"
_DEFAULT_EXPOSED_TYPE = _EXPOSED_TYPE_PANDAS

_ALL_EXPOSED_TYPES = [
_EXPOSED_TYPE_PANDAS,
_EXPOSED_TYPE_MODIN,
_EXPOSED_TYPE_NUMPY,
]
# Generic
Expand Down
2 changes: 1 addition & 1 deletion src/taipy/core/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"major": 2, "minor": 1, "patch": 1}
{"major": 2, "minor": 1, "patch": 2}
5 changes: 5 additions & 0 deletions tests/core/config/checkers/test_data_node_config_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ def test_check_exposed_types(self):
_DataNodeConfigChecker(config, collector)._check()
assert len(collector.errors) == 0

config._sections[DataNodeConfig.name]["default"].properties = {"exposed_type": "modin"}
Config._collector = IssueCollector()
Config.check()
assert len(Config._collector.errors) == 0

config._sections[DataNodeConfig.name]["default"].properties = {"exposed_type": "numpy"}
collector = IssueCollector()
_DataNodeConfigChecker(config, collector)._check()
Expand Down

0 comments on commit f139284

Please sign in to comment.