Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 10, 2023
1 parent 2f54f7b commit 01d23ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/neuroconv/tools/hdmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def _get_default_buffer_shape(self, buffer_gb: float = 1.0) -> Tuple[int]:
# Handle the case where the single axis is too large to fit in the buffer
if axis_sizes_bytes[0] > target_buffer_bytes:
k1 = np.floor(target_buffer_bytes / chunk_bytes)
return tuple([k1 * self.chunk_shape[0],])
return tuple(
[
k1 * self.chunk_shape[0],
]
)
else:
raise ValueError(f"num_axes ({num_axes}) is less than one!")

Expand Down

0 comments on commit 01d23ad

Please sign in to comment.