Skip to content

nameroot field is not generated for File in input #268

Closed

Description

@psafont

When defining input files only by path the nameroot field does not get generated by the cwl to be consumed by the steps when using the requirement StepInputExpressionRequirement.

I made a little repo where it can be easily reproduced: https://gitlab.com/unduthegun/cwl-test

OS: Linux
Python: 2.7.13
cwltool: 1.0.20170105144051

Activity

  1. kapilkd13 commented on Mar 18, 2017

    @kapilkd13
    Contributor

    Hi, To solve this bug, what I am doing is checking(in steps.input ) if nameroot exists, if it doesn't then generate nameroot using basename (if it exist). But I am not sure where to put this condition.
    I am thinking of putting it in https://github.com/common-workflow-language/cwltool/blob/master/cwltool/workflow.py#L148 . Is this approach correct.

  2. kapilkd13 commented on Mar 19, 2017

    @kapilkd13
    Contributor

    I guess I was wrong. Better thing to do would be to do the changes in job_order_object while it is being resolved, before it is passed to workflow. My changes are here #338

  3. added a commit that references this issue on Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions