-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace confusing checkbox with a single-entry drop-down list
This way we can at least show a message to the user when running in interactive mode about closing any open images.
- Loading branch information
Showing
2 changed files
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// @Boolean(label="NoiSee - run SNR bead analysis",description="all open images will be closed",value="true") run_macro | ||
// @String(label="NoiSee - Beads SNR analysis", choices={"Note: all currently open images will be closed!"}, style="listBox", description="Hit 'Cancel' otherwise!") warn_msg | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ehrenfeu
Author
Member
|
||
// @File(label="Beads time-series image",description="2D time-lapse acquisition of fluorescent beads") beadsimage | ||
// @Integer(label="Beads diameter (in pixels)",description="approximate bead diameter (in pixels)",value=15) beads_diameter | ||
// @Integer(label="Find Maxima noise tolerance",description="typical values: [PMT=50] [HyD (photon counting)=10] [Camera=500]",value=50) beads_noisetolerance | ||
|
@@ -26,11 +26,6 @@ | |
// - "roi_" - index number of a ROI manager entry | ||
|
||
|
||
if (run_macro == false) | ||
exit("Please select the 'run analysis' option to execute the macro!"); | ||
|
||
|
||
|
||
////////////////// function definitions /////////////////////////////// | ||
|
||
function duplicateImage(id_orig, new_name, single){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
That's an unusual way for adding a warning message...
Wouldn't
#@ String (visibility=MESSAGE, label="...") msg
do? Also note that you're using the "legacy" parameter syntax with// @String msg
. The now recommended syntax is#@ String msg
. It is language-agnostic and will be processed anywhere in the script (not only in the header), which allows to put license headers at the top of your script.