Skip to content

Commit

Permalink
Update multi_slice.py
Browse files Browse the repository at this point in the history
deleted repeated part
  • Loading branch information
jingjingwu1225 authored Nov 14, 2024
1 parent 8781cba commit 938dc22
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions linc_convert/modalities/df/multi_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,6 @@ def convert(
x = floordiv(shape[-2] - subdat_size[-2], 2)
y = floordiv(shape[-1] - subdat_size[-1], 2)

for channel in range(3):
if max_load is None or (
subdat_size[-2] < max_load and subdat_size[-1] < max_load
):
array[
channel, idx, x : x + subdat_size[-2], y : y + subdat_size[-1]
] = subdat[channel : channel + 1, ...][0]

for channel in range(3):
if max_load is None or (
subdat_size[-2] < max_load and subdat_size[-1] < max_load
Expand Down

0 comments on commit 938dc22

Please sign in to comment.