Repository navigation
Conversation
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
For the ImageJ 1.x macro engine, we will want to access the script module's info to find out what outputs are required so we can append code to set it in a thread-local manner. See also imagej/imagej-legacy#10 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Contributor
Author
|
@ctrueden could you have a quick look? This PR actually also re-adds a unit test for the script service (I had one in |
Member
|
I think this is great. Any reason we can't merge right away? |
dscho
added a commit
that referenced
this pull request
May 21, 2014
Prepare for a fancy ImageJ 1.x macro interpreter
Contributor
Author
|
I suppose you're right. I was a little concerned that script engines might have problems with the bindings, given that they correspond to a class name. OTOH, the filename is already stored under a similar key ( |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We are about to add an ImageJ 1.x macro "script engine". By necessity, it will be very limited, but we can still make things a little bit better by handling
@Parametercomments via theScriptService(see imagej/imagej-legacy#10). This will require a little change in theScriptService, though: we will need to tell what inputs and outputs are expected when evaluating the script, to be able to insert appropriate code before and after the script.