Skip to content

Commit

Permalink
disable isort for a section of cudf_helpers.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
cwharris committed Oct 28, 2024
1 parent 16a2b90 commit 10d661c
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions python/morpheus/morpheus/_lib/cudf_helpers.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,48 @@
import cudf
from cudf.core.dtypes import StructDtype

# imports needed for get_element, which is required by from_column_view_with_fix
cimport pylibcudf.libcudf.copying as cpp_copying
from libcpp.memory cimport make_unique
from libcpp.memory cimport unique_ptr
from libcpp.string cimport string
from libcpp.utility cimport move
from libcpp.vector cimport vector
from pylibcudf.libcudf.column.column_view cimport column_view
from pylibcudf.libcudf.io.types cimport column_name_info
from pylibcudf.libcudf.io.types cimport table_metadata
from pylibcudf.libcudf.io.types cimport table_with_metadata
from pylibcudf.libcudf.scalar.scalar cimport scalar
from pylibcudf.libcudf.table.table_view cimport table_view
from pylibcudf.libcudf.types cimport size_type

from cudf._lib.column cimport Column
from cudf._lib.scalar cimport DeviceScalar
from cudf._lib.utils cimport data_from_unique_ptr
from cudf._lib.utils cimport table_view_from_table

# isort: off

# imports needed for get_element, which is required by from_column_view_with_fix
cimport pylibcudf.libcudf.copying as cpp_copying
from pylibcudf.libcudf.column.column_view cimport column_view
from libcpp.memory cimport make_unique, unique_ptr
from pylibcudf.libcudf.scalar.scalar cimport scalar
from cudf._lib.scalar cimport DeviceScalar

# imports needed for from_column_view_with_fix
import rmm
from libc.stdint cimport uintptr_t
from cudf.core.buffer import (
# Buffer,
ExposureTrackedBuffer,
SpillableBuffer,
# acquire_spill_lock,
as_buffer,
# cuda_array_interface_wrapper,
)
cimport pylibcudf.libcudf.types as libcudf_types
from cudf._lib.types cimport (
dtype_from_column_view,
# dtype_to_data_type,
# dtype_to_pylibcudf_type,
)
from cudf._lib.null_mask import bitmask_allocation_size_bytes

# isort: on

cdef get_element(column_view col_view, size_type index):

Expand All @@ -49,23 +71,6 @@ cdef get_element(column_view col_view, size_type index):
move(c_output), dtype=dtype_from_column_view(col_view)
)

# imports needed for from_column_view_with_fix

import rmm

from libc.stdint cimport uintptr_t

from cudf.core.buffer import ExposureTrackedBuffer # Buffer,; acquire_spill_lock,; cuda_array_interface_wrapper,
from cudf.core.buffer import SpillableBuffer
from cudf.core.buffer import as_buffer

cimport pylibcudf.libcudf.types as libcudf_types

from cudf._lib.types cimport dtype_from_column_view # dtype_to_data_type,; dtype_to_pylibcudf_type,

from cudf._lib.null_mask import bitmask_allocation_size_bytes


cdef Column from_column_view_with_fix(column_view cv, object owner):
"""
Given a ``cudf::column_view``, constructs a ``cudf.Column`` from it,
Expand Down

0 comments on commit 10d661c

Please sign in to comment.