Skip to content

Commit 1d85476

Browse files
FilippoOlivondem0
authored andcommitted
Fix bug (#465)
1 parent 0a46f55 commit 1d85476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pina/data/data_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _split_condition(condition_dict, splits_dict):
308308
if k != "equation"
309309
# Equations are NEVER dataloaded
310310
}
311-
if offset + stage_len > len_condition:
311+
if offset + stage_len >= len_condition:
312312
offset = len_condition - 1
313313
continue
314314
offset += stage_len

0 commit comments

Comments
 (0)