Skip to content

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

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")

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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