Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni committed Dec 21, 2023
1 parent 9462c1f commit 996be5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_target_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from trane.ops.transformation_ops import IdentityOp


@pytest.fixture
@pytest.fixture(scope="module")
def data():
num_rows = 100
data = {
Expand Down
2 changes: 2 additions & 0 deletions trane/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def calculate_target_values(
window_size=window_size,
gap=window_size,
):
if dataslice.empty:
continue

Check warning on line 51 in trane/core/utils.py

View check run for this annotation

Codecov / codecov/patch

trane/core/utils.py#L51

Added line #L51 was not covered by tests
record = labeling_function(dataslice)
records.append(
{
Expand Down

0 comments on commit 996be5c

Please sign in to comment.