Skip to content

CWL generation: invalid result with output_type=File(), selector=Stdout() → "outputEval: _stderr" #95

@mr-c

Description

@mr-c
outputs:
- id: result
  label: result
  type: File
  outputBinding:
    glob: _stdout
    outputEval: _stderr
    loadContents: false

The outputEval: _stderr is nonsensical here

From

hello_janis.py

from typing import List, Optional, Dict, Any

from janis_core import *
from janis_core.types.common_data_types import File

Optionalexample_Dev = CommandToolBuilder(
    tool="OptionalExample",
    base_command=["echo", "Hello, World!"],
    inputs=[],
    outputs=[
        ToolOutput(
            tag="result",
            output_type=File(),
            selector=Stdout(subtype=File(), optional=False),
            doc=OutputDocumentation(doc=None),
        )
    ],
    container="ubuntu:latest",
    version="DEV",
)


if __name__ == "__main__":
    Optionalexample_Dev().translate("cwl")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions