<div dir="ltr">Hi Brian,<div><br></div><div>Thanks for the reports:</div><div><br></div><div><div>> 1. The last couple of days when I try to extract the Fiji Linux 64</div><div>> continuous release tar file I get an error "truncated gzip input". I can</div>
<div>> work around this by downloading the "all platforms" package instead. </div><div><br></div><div>Hmm, I did not see this problem when I tried just now. Perhaps the download itself is not completing successfully? It should be ~141MB. If it keeps happening, we could add an MD5 sum for verification if that would be helpful.</div>
<div><br></div>
<div>> 2. It seems that the ops service is not getting injected into my jython</div><div>> scripts. Scripts works fine (ie data and display are injuected) until I try</div><div>> to call an op. Then I get "ops is not defined". This only happens when</div>
<div>> using a Fiji release. If I run imagej2 through a development environment</div><div>> using maven it works. </div><div><br></div></div><div>Yeah, I noticed this same problem the other day, and fixed it on master:</div>
<div><br></div><div> <a href="https://github.com/scijava/scijava-common/commit/f88984cb587c314c53e06fdce606d4cecf3a4813">https://github.com/scijava/scijava-common/commit/f88984cb587c314c53e06fdce606d4cecf3a4813</a></div>
<div><br></div><div>Using scijava-common-2.28.0 or later will avoid the issue. Or you can work around it by writing:</div><div><br></div><div> # @net.imagej.ops.OpService ops</div><div><br></div><div>Regards,</div><div>
Curtis</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 3:32 PM, Brian Northan <span dir="ltr"><<a href="mailto:bnorthan@gmail.com" target="_blank">bnorthan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi List<br><br></div>A couple of things...<br><br></div><div>1. The last couple of days when I try to extract the Fiji Linux 64 continuous release tar file I get an error "truncated gzip input". I can work around this by downloading the "all platforms" package instead. <br>
<br></div><div>2. It seems that the ops service is not getting injected into my jython scripts. Scripts works fine (ie data and display are injuected) until I try to call an op. Then I get "ops is not defined". This only happens when using a Fiji release. If I run imagej2 through a development environment using maven it works. <br>
<br></div><div>Thanks, an example script is below<br><br>Brian<br></div><div><br></div><div># @DatasetService data<br># @DisplayService display<br>
# @OpService ops<br><br># define a local directory to get the images from<br>directory="/home/bnorthan/Brian2014/Images/TempForEasyAccess/"<br><br># use 2-channels of the lena image for test image<br>image1Name="lena_red.tif"<br>
image2Name="lena_green.tif"<br><br># open first image<br>image1=data.open(directory+image1Name)<br>display.createDisplay(image1.getName(), image1); <br><br># open second image<br>image2=data.open(directory+image2Name)<br>
display.createDisplay(image2.getName(), image2);<br><br># add the images<br>image3 = ops.add(image1,image2)<br>display.createDisplay(image3.getName(), image3)<br><br><br><br></div></div>
<br>_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
<br></blockquote></div><br></div>