diff options
| author | maxim-yurchuk <[email protected]> | 2025-02-11 13:26:52 +0300 |
|---|---|---|
| committer | maxim-yurchuk <[email protected]> | 2025-02-11 13:57:59 +0300 |
| commit | f895bba65827952ed934b2b46f9a45e30a191fd2 (patch) | |
| tree | 03260c906d9ec41cdc03e2a496b15d407459cec0 /contrib/python/contourpy/src/util.cpp | |
| parent | 5f7060466f7b9707818c2091e1a25c14f33c3474 (diff) | |
Remove deps on pandas
<https://github.com/ydb-platform/ydb/pull/14418>
<https://github.com/ydb-platform/ydb/pull/14419>
\-- аналогичные правки в gh
Хочу залить в обход синка, чтобы посмотреть удалится ли pandas в нашей gh репе через piglet
commit_hash:abca127aa37d4dbb94b07e1e18cdb8eb5b711860
Diffstat (limited to 'contrib/python/contourpy/src/util.cpp')
| -rw-r--r-- | contrib/python/contourpy/src/util.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/contrib/python/contourpy/src/util.cpp b/contrib/python/contourpy/src/util.cpp deleted file mode 100644 index 82c1cc21d93..00000000000 --- a/contrib/python/contourpy/src/util.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "util.h" -#include <cmath> -#include <thread> - -namespace contourpy { - -bool Util::_nan_loaded = false; - -double Util::nan = 0.0; - -void Util::ensure_nan_loaded() -{ - if (!_nan_loaded) { - auto numpy = py::module_::import("numpy"); - nan = numpy.attr("nan").cast<double>(); - _nan_loaded = true; - } -} - -index_t Util::get_max_threads() -{ - return static_cast<index_t>(std::thread::hardware_concurrency()); -} - -bool Util::is_nan(double value) -{ - return std::isnan(value); -} - -} // namespace contourpy |
