@@ -416,7 +416,7 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
416416 format = None , channel = None , customOutputFolder = None ,
417417 customSubFolder = None , padFileNamesWithZeros = None ,
418418 resolutionUnit = None , doFilter = None , fillWithNoise = None ,
419- imageType = None , subprocess_mode = None , host = None ,
419+ convertToGray = None , subprocess_mode = None , host = None ,
420420 port = None , owner = None , project = None ,
421421 client_script = None , memGB = None , render = None ,
422422 ** kwargs ):
@@ -452,8 +452,8 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
452452 resolutionUnit: str
453453 if format is tiff and unit is specified (e.g. as 'nm'), include resolution data
454454 in rendered tiff headers.
455- imageType: int
456- 8,16,24 to specify what kind of image type to save
455+ convertToGray: str
456+ string representing java boolean for whether to save output as 8bit uint
457457 doFilter : str
458458 string representing java boolean for whether to render image
459459 with default filter (varies with render version)
@@ -489,7 +489,7 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
489489 get_param (maxIntensity , '--maxIntensity' ) +
490490 get_param (fillWithNoise , '--fillWithNoise' ) +
491491 get_param (customOutputFolder , '--customOutputFolder' ) +
492- get_param ( imageType , '--imageType' ) +
492+ ([ '--convertToGray' ] if convertToGray else [] ) +
493493 get_param (channel , '--channels' ) +
494494 get_param (customSubFolder , '--customSubFolder' ) +
495495 get_param (padFileNamesWithZeros , '--padFileNamesWithZeros' ) +
0 commit comments