8000 Support paths (and similar strings) in stdin · Issue #557 · actinia-org/actinia-core · GitHub
[go: up one dir, main page]

Skip to content

Support paths (and similar strings) in stdin #557

Open

Description

@ninsbl

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0