From 54c0f5d984da6ae9d7da81c317374cd640935366 Mon Sep 17 00:00:00 2001 From: Kata Date: Thu, 3 Sep 2020 10:09:27 +0200 Subject: [PATCH] bug fix in downsampling function and documentation improvement before error: TypeError: zip argument #2 must support iteration, line 163 --- fimpy/pipeline/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fimpy/pipeline/general.py b/fimpy/pipeline/general.py index 469ad2b..16b0188 100644 --- a/fimpy/pipeline/general.py +++ b/fimpy/pipeline/general.py @@ -135,7 +135,7 @@ def _downsample_block(dataset, old_block, filename, factor, method): def downsample( dataset: SplitDataset, - downsampling=2, + downsampling= (1, 1, 2, 2), proc_block_shape=None, crop=None, output_dir=None, @@ -145,7 +145,7 @@ def downsample( """ Donwsamples a dataset :param dataset: - :param downsampling: + :param downsampling: tuple of 4 (original, original, ds_factor, ds_factor) :param crop: :param output_dir: :param n_jobs: