Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyPavlenko committed Apr 12, 2024
1 parent fdcbeb0 commit 8cc6583
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,23 @@ def apply(
other_part = other_axis_partition._data
args = [other_part] + list(args)

Check warning on line 213 in modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py

View check run for this annotation

Codecov / codecov/patch

modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py#L212-L213

Added lines #L212 - L213 were not covered by tests

de = self._apply(func, args, kwargs)
obj, meta, meta_off = self._apply(func, args, kwargs).exec()
if num_splits > 1:
de = _DeferredSplit(de, self.axis, num_splits, lengths)
obj = _DeferredSplit(obj, self.axis, num_splits, lengths)
if lengths is not None and len(lengths) != num_splits:
lengths = None
result = [

Check warning on line 220 in modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py

View check run for this annotation

Codecov / codecov/patch

modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py#L215-L220

Added lines #L215 - L220 were not covered by tests
PandasOnRayDataframePartition(
_DeferredGetChunk(
de, i, lengths[i] if lengths is not None else None
obj, i, lengths[i] if lengths is not None else None
)
)
for i in range(num_splits)
]
else:
result = [PandasOnRayDataframePartition(de)]
result = [

Check warning on line 229 in modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py

View check run for this annotation

Codecov / codecov/patch

modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py#L229

Added line #L229 was not covered by tests
PandasOnRayDataframePartition(obj, meta=meta, meta_offset=meta_off)
]
if self.full_axis or other_axis_partition is not None:
return result

Check warning on line 233 in modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py

View check run for this annotation

Codecov / codecov/patch

modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py#L232-L233

Added lines #L232 - L233 were not covered by tests
else:
Expand Down Expand Up @@ -338,7 +340,7 @@ def list_of_block_partitions(self) -> list:
if self._list_of_block_partitions is not None:
return self._list_of_block_partitions

Check warning on line 341 in modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py

View check run for this annotation

Codecov / codecov/patch

modin/core/execution/ray/implementations/pandas_on_ray/partitioning/lazy_virtual_partition.py#L337-L341

Added lines #L337 - L341 were not covered by tests

data = self._data_ref
data = self._data
num_splits = self._num_splits
if num_splits > 1:
lengths = self._chunk_lengths
Expand Down

0 comments on commit 8cc6583

Please sign in to comment.