-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
use polars::prelude::_set_check_length; | ||
use polars_core::config::get_engine_affinity as _get_engine_affinity; | ||
use polars_core::config::get_engine_affinity; | ||
use pyo3::prelude::*; | ||
|
||
#[pyfunction] | ||
pub fn check_length(check: bool) { | ||
unsafe { _set_check_length(check) } | ||
} | ||
|
||
#[pyfunction] | ||
pub fn get_engine_affinity() -> PyResult<Option<String>> { | ||
Ok(Some(_get_engine_affinity())) | ||
#[pyfunction(name="get_engine_affinity")] | ||
pub fn py_get_engine_affinity() -> PyResult<String> { | ||
Ok(get_engine_affinity()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters