Skip to content

Commit 1576a57

Browse files
authored
pass resolutionUnit parameter
makes the `resolutionUnit` parameter (saalfeldlab/render@0448e3d) available.
1 parent 4bca171 commit 1576a57

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

renderapi/client/client_calls.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,11 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
346346
maxIntensity=None, minIntensity=None, bounds=None,
347347
format=None, channel=None, customOutputFolder=None,
348348
customSubFolder=None, padFileNamesWithZeros=None,
349-
doFilter=None, fillWithNoise=None, imageType=None,
350-
subprocess_mode=None, host=None, port=None, owner=None,
351-
project=None, client_script=None, memGB=None,
352-
render=None, **kwargs):
349+
resolutionUnit=None, doFilter=None, fillWithNoise=None,
350+
imageType=None, subprocess_mode=None, host=None,
351+
port=None, owner=None, project=None,
352+
client_script=None, memGB=None, render=None,
353+
**kwargs):
353354
"""run RenderSectionClient.java
354355
355356
Parameters
@@ -379,6 +380,9 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
379380
folder to save all images in under outputFolder (overrides default of none)
380381
padFileNamesWithZeros: bool
381382
whether to pad file names with zeros to make sortable
383+
resolutionUnit: str
384+
if format is tiff and unit is specified (e.g. as 'nm'), include resolution data
385+
in rendered tiff headers.
382386
imageType: int
383387
8,16,24 to specify what kind of image type to save
384388
doFilter : str
@@ -418,9 +422,11 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
418422
get_param(customOutputFolder, '--customOutputFolder') +
419423
get_param(imageType, '--imageType') +
420424
get_param(channel, '--channels') +
421-
get_param(customSubFolder, '--customSubFolder') +
425+
get_param(customSubFolder, '--customSubFolder') +
422426
get_param(padFileNamesWithZeros, '--padFileNamesWithZeros') +
427+
get_param(resolutionUnit, '--resolutionUnit') +
423428
bound_param + zs)
429+
424430
call_run_ws_client('org.janelia.render.client.RenderSectionClient',
425431
memGB=memGB, client_script=client_script,
426432
subprocess_mode=subprocess_mode, add_args=argvs,

0 commit comments

Comments
 (0)