DiamondLightSource / DiamondLightSource/httomo

preview is smaller than the padded data

Open
#548 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
10
Forks
5
Avg merge
5d 17h
Merged PRs (30d)
1

Description

When the requested previewed data is smaller than the padded data, it results in the error in BlockSplitter:
```
File "/home/algol/Documents/DEV/httomo/httomo/runner/task_runner.py", line 112, in _execute_section
splitter = BlockSplitter(self.source, section.max_slices)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/algol/Documents/DEV/httomo/httomo/runner/block_split.py", line 27, in __init__
self._num_blocks = math.ceil(self._chunk_size / self._max_slices)
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
ZeroDivisionError: division by zero
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.