From 938dc22a130e561851535decac409f02ee72ddde Mon Sep 17 00:00:00 2001 From: Jingjing Wu <49615883+jingjingwu1225@users.noreply.github.com> Date: Thu, 14 Nov 2024 09:20:30 -0500 Subject: [PATCH] Update multi_slice.py deleted repeated part --- linc_convert/modalities/df/multi_slice.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/linc_convert/modalities/df/multi_slice.py b/linc_convert/modalities/df/multi_slice.py index 574368e..0668191 100644 --- a/linc_convert/modalities/df/multi_slice.py +++ b/linc_convert/modalities/df/multi_slice.py @@ -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