<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Paul,
<div class=""><br class="">
</div>
<div class=""> See the 3 examples for using "<span style="font-family: Consolas, 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; font-size: 14px; letter-spacing: 0.015em; line-height: 16.8px; orphans: 2; widows: 2; background-color: rgb(241, 241, 241);" class="">setActiveChannels</span>
<div class="">on <a href="https://www.openmicroscopy.org/site/support/omero5.2/developers/Python.html" class="">https://www.openmicroscopy.org/site/support/omero5.2/developers/Python.html</a></div>
<div class=""><br class="">
</div>
<div class="">Then save settings with:</div>
<div class=""><br class="">
</div>
<div class="">image.saveDefaults().</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">If you’re iterating through a bunch of images then you’ll want to close the</div>
<div class="">rendering engine for each after saving.</div>
<div class=""><br class="">
</div>
<div class="">image._re.close()</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Hope that helps,</div>
<div class=""><br class="">
</div>
<div class=""> Will.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 20 Dec 2016, at 10:41, Paul van Schayck <<a href="mailto:paul@vanschayck.nl" class="">paul@vanschayck.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">Hi Sebastien,<br class="">
<br class="">
Thanks for the update.<br class="">
<br class="">
On Tue, Dec 20, 2016 at 10:47 AM, Sebastien Besson (Staff)<br class="">
<<a href="mailto:s.besson@dundee.ac.uk" class="">s.besson@dundee.ac.uk</a>> wrote:<br class="">
<blockquote type="cite" class="">Unfortunately the required changes to set the minmax within a format reader<br class="">
are breaking. As we are<br class="">
trying to keep the changes in the Bio-Formats 5.3+ line<br class="">
backwards-compatible, this means we will not be<br class="">
able to put these changes in place before the next round of breaking changes<br class="">
in Bio-Formats 6.x for which<br class="">
we currently have no defined roadmap/timeline.<br class="">
</blockquote>
<br class="">
If you have any trello card or trac issue to track, can you let me know. Thanks.<br class="">
<br class="">
In the meantime I created this OMERO script [1] a while a go to fix<br class="">
the minmax after importing. This does not however do exactly what I<br class="">
would like. The function setChannelGlobalMinMax() cuts of the channel<br class="">
min and max values to the ones specified. I would like to still be<br class="">
able to set the min and max to values higher and lower. I guess this<br class="">
is called a rendering setting. Would you be able to give me a few<br class="">
pointers on how to create and save rendering settings from the Python<br class="">
API. And to set those as the primary rendering settings being used for<br class="">
all users.<br class="">
<br class="">
Thanks,<br class="">
<br class="">
Paul<br class="">
<br class="">
[1] <a href="https://github.com/M4I-nanoscopy/omero-user-scripts/blob/master/omero/util_scripts/Fix_MinMax.py" class="">
https://github.com/M4I-nanoscopy/omero-user-scripts/blob/master/omero/util_scripts/Fix_MinMax.py</a><br class="">
_______________________________________________<br class="">
ome-devel mailing list<br class="">
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" class="">ome-devel@lists.openmicroscopy.org.uk</a><br class="">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>