Skip to content

Commit 0823b54

Browse files
gonlairostes
authored andcommitted
clean test
1 parent 07bac1c commit 0823b54

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/test_solver.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,6 @@ def test_batched_transform_singlesession(
425425
offset_ = model.get_offset()
426426
padding_left = offset_.left if padding else 0
427427

428-
#TODO: this wont work in the case where the data is less than
429-
#the offset from the beginning, i.e len(data) = 10, len(offset) = 10
430428
if smallest_batch_length <= len(offset_):
431429
with pytest.raises(ValueError):
432430
solver.transform(inputs=loader.dataset.neural,
@@ -477,11 +475,9 @@ def test_batched_transform_multisession(data_name, model_name, padding,
477475

478476
smallest_batch_length = n_samples - batch_size
479477
offset_ = model[0].get_offset()
480-
#print("here!", smallest_batch_length, len(offset_))
481478
padding_left = offset_.left if padding else 0
482479
for d in dataset._datasets:
483480
d.offset = offset_
484-
#dataset._datasets[0].offset = cebra.data.Offset(0, 1)
485481
loader_kwargs = dict(num_steps=10, batch_size=32)
486482
loader = loader_initfunc(dataset, **loader_kwargs)
487483

0 commit comments

Comments
 (0)