Package qupath.lib.scripting
Class ScriptAttributes
java.lang.Object
qupath.lib.scripting.ScriptAttributes
Default attributes that can be set when running scripts.
Script implementations should try to set these where possible using
ScriptParameters
.
The intention is that, where supported, scripts can then access the information, e.g. for Groovy
var filePath = getProperty(ScriptAttributes.FILE_PATH)
- Since:
- v0.4.0
- Author:
- Pete Bankhead
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Optional string args passed to the script.static final String
Index of the current run when batch processing (starting at 0).static final String
Boolean flag to indicate if the current script is the last in a batch.static final String
Boolean flag to indicate whether changes to the image data should automatically be saved.static final String
Size of the current batch processing batch.static final String
File path of the running script file. -
Constructor Summary
-
Method Summary
-
Field Details
-
ARGS
Optional string args passed to the script.- See Also:
-
FILE_PATH
File path of the running script file.- See Also:
-
BATCH_SIZE
Size of the current batch processing batch. Running a single script in isolation should be seen as batch processing with a batch size of 1.- See Also:
-
BATCH_INDEX
Index of the current run when batch processing (starting at 0).- See Also:
-
BATCH_LAST
Boolean flag to indicate if the current script is the last in a batch.- See Also:
-
BATCH_SAVE
Boolean flag to indicate whether changes to the image data should automatically be saved.- See Also:
-
-
Constructor Details
-
ScriptAttributes
public ScriptAttributes()
-