Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyPavlenko committed Apr 11, 2024
1 parent 779cc99 commit c0b6309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modin/core/execution/ray/common/deferred_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def __setitem__(self, index, value):
obj[index] = value


class MetaListHook(MaterializationHook, DeferredGetItem):
class MetaListHook(MaterializationHook):
"""
Used by MetaList.__getitem__() for lazy materialization and getting a single value from the list.
Expand All @@ -598,8 +598,8 @@ class MetaListHook(MaterializationHook, DeferredGetItem):
"""

def __init__(self, meta: MetaList, index: int):
super().__init__(meta._obj, index)
self.meta = meta
self.index = index

def pre_materialize(self):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
MetaListHook,
)
from modin.core.execution.ray.common.utils import ObjectIDType
from modin.core.execution.utils import remote_function
from modin.logging import disable_logging, get_logger
from modin.pandas.indexing import compute_sliced_len
from modin.utils import _inherit_docstrings
Expand Down Expand Up @@ -420,7 +419,7 @@ def eager_exec(self, func, *args, length=None, width=None, **kwargs):
LazyExecution.subscribe(_configure_lazy_exec)


class SlicerHook(MaterializationHook, DeferredExecution):
class SlicerHook(MaterializationHook):
"""
Used by mask() for the slilced length computation.
Expand All @@ -433,7 +432,6 @@ class SlicerHook(MaterializationHook, DeferredExecution):
"""

def __init__(self, ref: ObjectIDType, slc: slice):
super().__init__(slc, remote_function(compute_sliced_len), [ref])
self.ref = ref
self.slc = slc

Expand Down

0 comments on commit c0b6309

Please sign in to comment.