Skip to content

Commit b8ed502

Browse files
committed
Fixed regression: temporal integrity assertion fixed in tests
1 parent 2c5b756 commit b8ed502

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_spatial_cv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_multi_grouped_spatial_splits(mock_panel_data):
100100
tr_periods = set(mock_panel_data["year"].iloc[train_idx])
101101
ts_periods = set(mock_panel_data["year"].iloc[test_idx])
102102
if len(tr_periods) > 0 and len(ts_periods) > 0:
103-
assert max(tr_periods) <= max(ts_periods), "Temporal anomaly encountered!"
103+
assert max(tr_periods) < min(ts_periods), "Temporal anomaly encountered!"
104104

105105

106106
def test_plot_splits_with_stratified_group_kfold(mock_panel_data):

0 commit comments

Comments
 (0)