Skip to content

Commit ca1c941

Browse files
committed
Remove unused variable
1 parent b33b0b8 commit ca1c941

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_httomolibgpu.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,14 +637,13 @@ def __test_recon_LPRec3d_tomobar_memoryhook_common(slices, detX_size, projection
637637
estimated_memory_bytes -= input_slice_size
638638

639639
estimated_memory_mb = round(slices * estimated_memory_bytes / (1024**2), 2)
640-
max_mem_mb = round(max_mem / (1024**2), 2)
641640
max_mem -= subtract_bytes
642641
max_mem_mb = round(max_mem / (1024**2), 2)
643642

644643
# now we compare both memory estimations
645644
difference_mb = abs(estimated_memory_mb - max_mem_mb)
646645
percents_relative_maxmem = round((difference_mb / max_mem_mb) * 100)
647-
# the estimated_memory_mb should be LARGER or EQUAL to max_mem_mb
646+
# the estimated_memory_mb should be LAt pRGER or EQUAL to max_mem_mb
648647
# the resulting percent value should not deviate from max_mem on more than 20%
649648
assert estimated_memory_mb >= max_mem_mb
650649
assert percents_relative_maxmem <= 30

0 commit comments

Comments
 (0)