Skip to content

Commit 5beef91

Browse files
committed
Some debug
1 parent b895e32 commit 5beef91

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

gatetools/bin/gt_affine_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def convertNewParameterToFloat(newParameterString, size):
6464
@click.option('--interpolation_mode', '-im', help='Interpolation mode: NN for nearest neighbor, linear for linear interpolation and BSpline for BSpline interpolation', default='linear', type=click.Choice(['NN', 'linear', 'BSpline']))
6565
@click.option('--bspline_order', '-bo', help='For BSpline interpolator, set the interpolation bspline order', default='2', type=click.Choice(['0', '1', '2', '3', '4', '5']))
6666

67-
@click.option('--gaussian', '-g', help='Run a gaussian filter before the downsampling', default='False', is_flag=True))
67+
@click.option('--gaussian', '-g', help='Run a gaussian filter before the downsampling', default='False', is_flag=True)
6868

6969
@gt.add_options(gt.common_options)
7070
def gt_affine_transform_main(input, output, newsize, neworigin, newspacing, newdirection, like, spacinglike, force_resample, keep_original_canvas, adaptive, matrix, rotation, center, translation, pad, interpolation_mode, bspline_order, gaussian, **kwargs):

gatetools/bin/gt_image_uncertainty.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,10 @@ def gt_image_uncertainty(filenames, nevents, output, counts, by_slice, threshold
145145

146146

147147
# write file
148-
if verbose:
149-
logger.info('Write {}'.format(output))
150-
itk.imwrite(uncertainty, output)
148+
if label is None:
149+
if verbose:
150+
logger.info('Write {}'.format(output))
151+
itk.imwrite(uncertainty, output)
151152

152153

153154
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)