<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="">
<div class="">Hi All</div>
<div class=""><br class="">
</div>
<div class="">Since sending the mail below Romain has been in touch to say </div>
<div class="">“ <span style="font-family: Calibri, sans-serif; font-size: 11pt;" class="">There’s just a small problem is that I think it doesn’t overwrite files properly when there’s already a file with the same name.</span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
I got some weird results doing that so I made sure they’re created each time."</div>
<div class=""><br class="">
</div>
<div class="">This suggests that a the problem of overwriting existing files, addressed by the 2nd of the 2 code snippets below, remains an issue.</div>
<div class="">My feeling is that this should be addressed in either the bio-formats Matlab plugin or at an even lower level?</div>
<div class=""><br class="">
</div>
<div class="">What does the OME team think?</div>
<div class=""><br class="">
</div>
<div class="">Best Wishes</div>
<div class=""><br class="">
</div>
<div class="">Ian</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 17 Jul 2018, at 13:20, Munro, Ian <<a href="mailto:i.munro@imperial.ac.uk" class="">i.munro@imperial.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div class="">Hi Romain</div>
<div class=""><br class="">
</div>
<div class="">Attached is a little Matlab script to create a FLIM OME-TIFF.</div>
<div class="">The first section just creates some dummy data.</div>
<div class="">The second part (after the tic at line 28) uses the bio-formats Matlab plugin to write this to a file.</div>
<div class="">Note that the variable “delays’ can contain any strings not just the regularly spaced ones used here.</div>
<div class=""><br class="">
</div>
<div class="">This is quite old code now so maybe someone from the core OME team could have a quick look and see if it’s still ok?</div>
<div class="">In particular this line:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(39,42,216)">
<span class="" style="font-size: 13px; line-height: normal;">java.lang.System.setProperty(</span><span class="" style="">'javax.xml.transform.TransformerFactory'</span><span class="" style="font-size: 13px; line-height: normal;">,
</span><span class="" style="">'com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl’</span><span class="" style="font-size: 13px; line-height: normal;">);</span></div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo; color:rgb(39,42,216)">
<span class="" style="font-size: 13px; line-height: normal;"><br class="">
</span></div>
<div class="" style="margin:0px; line-height:normal">may no longer be required.</div>
<div class="" style="margin:0px; line-height:normal">Also we used to have problems when overwriting existing files. If this has since been addressed,</div>
<div class="" style="margin:0px; line-height:normal">then this section:</div>
<div class="" style="margin:0px; line-height:normal; font-family:Menlo"><br class="">
</div>
<div class="" style="margin:0px; line-height:normal">
<div class="" style="font-family:Menlo; margin:0px; line-height:normal"><span class="" style="font-size:11px; line-height:normal; color:rgb(187,44,162)">if</span><span class="" style=""> exist(outputPath,
</span><span class="" style="font-size:11px; line-height:normal; color:rgb(39,42,216)">'file'</span><span class="" style="">) ==
</span><span class="" style="font-size:11px; line-height:normal; color:rgb(39,42,216)">2</span></div>
<div class="" style="font-family:Menlo; margin:0px; line-height:normal"><span class="" style=""> delete(outputPath);</span></div>
<div class="" style="font-family:Menlo; margin:0px; line-height:normal"><span class="" style="">end</span></div>
<div class="" style="font-family:Menlo; margin:0px; line-height:normal"><span class="" style=""><br class="">
</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style="">May no longer be required.</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style="">Hope that helps.</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style=""><br class="">
</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style="">Best wishes.</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style=""><br class="">
</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style="">Ian</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style=""><br class="">
</span></div>
<div class="" style="margin:0px; line-height:normal"><span class="" style=""></span></div>
</div>
</div>
</div>
<div class="" style="word-wrap:break-word">
<div class="">
<div class="" style="margin:0px; line-height:normal">
<div class="" style="margin:0px; line-height:normal"><span class="" style=""></span></div>
</div>
<div class="" style="margin:0px; line-height:normal; font-family:Menlo"><br class="">
</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div class="">
<div class="">
<div class="">
<blockquote type="cite" class="">
<div class="">
<div class="x_WordSection1" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
<span id="cid:94E12C7E6EFFAB47952C2640FD7C0FCC@eurprd06.prod.outlook.com"><save_as_OMEtiff_Synthetic_Gated.m></span></div>
</blockquote>
</div>
<br class="">
</body>
</html>