Skip to content

Commit d9e2f26

Browse files
authored
Merge pull request #159 from martinschorb/patch-2
pass `resolutionUnit` parameter
2 parents f7861a5 + 1576a57 commit d9e2f26

File tree

3 files changed

+34
-32
lines changed

3 files changed

+34
-32
lines changed

LICENSE

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,25 @@
1-
Allen Institute Software License – This software license is the 2-clause BSD
2-
license plus a third clause that prohibits redistribution and use for
3-
commercial purposes without further permission.
1+
BSD 2-Clause License
42

5-
Copyright © 2019. Allen Institute. All rights reserved.
3+
Copyright (c) 2022, Allen Institute
4+
All rights reserved.
65

7-
Redistribution and use in source and binary forms, with or without
6+
Redistribution and use in source and binary forms, with or without
87
modification, are permitted provided that the following conditions are met:
98

10-
1. Redistributions of source code must retain the above copyright notice, this
11-
list of conditions and the following disclaimer.
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
1211

13-
2. Redistributions in binary form must reproduce the above copyright notice,
14-
this list of conditions and the following disclaimer in the documentation
15-
and/or other materials provided with the distribution.
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
1615

17-
3. Redistributions and use for commercial purposes are not permitted without
18-
the Allen Institute’s written permission. For purposes of this license,
19-
commercial purposes are the incorporation of the Allen Institute's software
20-
into anything for which you will charge fees or other compensation or use of
21-
the software to perform a commercial service for a third party. Contact
22-
[email protected] for commercial licensing opportunities.
23-
24-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ Documentation
3232
#############
3333
http://render-python.readthedocs.io/en/latest/
3434

35+
Government Sponsorship
36+
######################
37+
Supported by the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior / Interior Business Center (DoI/IBC) contract number D16PC00004. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, DoI/IBC, or the U.S. Government.
38+
3539
.. _render :

renderapi/client/client_calls.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,11 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
415415
maxIntensity=None, minIntensity=None, bounds=None,
416416
format=None, channel=None, customOutputFolder=None,
417417
customSubFolder=None, padFileNamesWithZeros=None,
418-
doFilter=None, fillWithNoise=None, imageType=None,
419-
subprocess_mode=None, host=None, port=None, owner=None,
420-
project=None, client_script=None, memGB=None,
421-
render=None, **kwargs):
418+
resolutionUnit=None, doFilter=None, fillWithNoise=None,
419+
imageType=None, subprocess_mode=None, host=None,
420+
port=None, owner=None, project=None,
421+
client_script=None, memGB=None, render=None,
422+
**kwargs):
422423
"""run RenderSectionClient.java
423424
424425
Parameters
@@ -448,6 +449,9 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
448449
folder to save all images in under outputFolder (overrides default of none)
449450
padFileNamesWithZeros: bool
450451
whether to pad file names with zeros to make sortable
452+
resolutionUnit: str
453+
if format is tiff and unit is specified (e.g. as 'nm'), include resolution data
454+
in rendered tiff headers.
451455
imageType: int
452456
8,16,24 to specify what kind of image type to save
453457
doFilter : str
@@ -487,9 +491,11 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
487491
get_param(customOutputFolder, '--customOutputFolder') +
488492
get_param(imageType, '--imageType') +
489493
get_param(channel, '--channels') +
490-
get_param(customSubFolder, '--customSubFolder') +
494+
get_param(customSubFolder, '--customSubFolder') +
491495
get_param(padFileNamesWithZeros, '--padFileNamesWithZeros') +
496+
get_param(resolutionUnit, '--resolutionUnit') +
492497
bound_param + zs)
498+
493499
call_run_ws_client('org.janelia.render.client.RenderSectionClient',
494500
memGB=memGB, client_script=client_script,
495501
subprocess_mode=subprocess_mode, add_args=argvs,

0 commit comments

Comments
 (0)