-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
It would be nice to be able to extract any string from module stdout and inject it to input to other parameters.
In particular, I am tinking of paths e.g. from g.tempfile, like e.g. here:
{
"list": [
{
"flags": "d",
"id": "g_tempfile",
"inputs": [
{
"param": "pid",
"value": "123456789"
}
],
"module": "g.tempfile"
},
{
"flags": "g",
"id": "g_region",
"inputs": [
{
"param": "raster",
"value": "elevation"
}
],
"module": "g.region"
},
{
"flags": "g",
"id": "r_univar",
"inputs": [
{
"param": "map",
"value": "elevation"
},
{
"param": "output",
"value": "g_tempfile::stdout/temporary_file.txt"
}
],
"module": "r.univar"
}
],
"version": "3"
}g_tempfile::stdout above process chain is not parsed.
Would it be sufficient to add e.g. / here:
| for delimiter in ["::", " ", "+", "-", "*", ":", "(", ")"]: |
I am happy to create a PR.
neteler
Metadata
Metadata
Assignees
Labels
No labels