zitmen / thunderstorm

ThunderSTORM: a comprehensive ImageJ plugin for SMLM data analysis and super-resolution imaging
http://zitmen.github.io/thunderstorm/
GNU General Public License v3.0
92 stars 42 forks source link

Macro : Starting from an empty Imagej session, Results window is not catched for further processing #7

Closed zitmen closed 9 years ago

zitmen commented 9 years ago
What steps will reproduce the problem?
1. From Fiji a fresh-started Fiji, execute de following macro, replacing Path-to-your-CSV
by the path to a ThunderSTORM CSV file:

run("Import results", "append=false startingframe=1 rawimagestack= filepath=[Path-to-your-CSV]
livepreview=false fileformat=[CSV (comma separated)]");
run("Visualization", "imleft=0 imtop=0 imwidth=256 imheight=256 renderer=[Normalized
Gaussian] magnification=4.0 dxforce=false colorizez=false dx=20.0 threed=false");

What is the expected output? What do you see instead?
The CSV loc file should be imported, and a reconstruction created
Instead the file is imported, the results window is displayed, but then I get the following
error: 
Requires 'results' window open!

What version of the product are you using? On what operating system?
ThunderSTORM daily build 04/04/14 (the bug was always there) with Fiji, ImageJ 1.48t,
java 1.6.0_65 under OSX 10.9.2

Please provide any additional information below.

Original issue reported on code.google.com by lechristophe on 2014-04-04 14:50:37

zitmen commented 9 years ago
OK I have found something :

It fails because the Results window is not the active window when you call the Visualization.

if you force
selectWindow("ThunderSTORM: results");
just before every call for a Visualization in your macro it works. But it's a bit complicated
to figure out...

Original issue reported on code.google.com by lechristophe on 2014-04-04 15:09:37

zitmen commented 9 years ago
Thanks for feedback.
It should be fixed in commit 49dddefa150d (version dev-2014-04-07-b1). 

Original issue reported on code.google.com by vmodrosedem on 2014-04-07 10:20:05