Skip to content

very small numbers get turned into scientific notation on the command line #1831

@mr-c

Description

@mr-c

From: nfdi4plants/nf-core-pipeline-to-arc#9


Expected Behavior

type: float of 0.00001 or smaller are still represented as normal numbers (0.00001) on the command line

Actual Behavior

It is serialized using scientific notation 1e-05

Workflow Code

cwlVersion: v1.0
class: CommandLineTool
baseCommand: echo
inputs:
 annotation_prokka_evalue:
   type: float?
   default: 0.00001
   inputBinding: {}

outputs: []

Full Traceback

INFO /home/michael/cwltool/env3.11/bin/cwltool 3.1
INFO Resolved 'too-small-test.cwl' to 'file:///home/michael/cwltool/too-small-test.cwl'
DEBUG Parsed job order from command line: {
    "id": "too-small-test.cwl",
    "annotation_prokka_evalue": 1e-05
}
DEBUG [job too-small-test.cwl] initializing from file:///home/michael/cwltool/too-small-test.cwl
DEBUG [job too-small-test.cwl] {
    "annotation_prokka_evalue": 1e-05
}
DEBUG [job too-small-test.cwl] path mappings is {}
DEBUG [job too-small-test.cwl] command line bindings is [
    {
        "position": [
            -1000000,
            0
        ],
        "datum": "echo"
    },
    {
        "position": [
            0,
            "annotation_prokka_evalue"
        ],
        "datum": 1e-05
    }
]
DEBUG [job too-small-test.cwl] initial work dir {}
INFO [job too-small-test.cwl] /tmp/uq2p3kdl$ echo \
    1e-05
1e-05
DEBUG Could not collect memory usage, job ended before monitoring began.
INFO [job too-small-test.cwl] completed success
DEBUG [job too-small-test.cwl] outputs {}
DEBUG [job too-small-test.cwl] Removing input staging directory /tmp/e11ug6hl
DEBUG [job too-small-test.cwl] Removing temporary directory /tmp/yk8r4ib_
DEBUG Removing intermediate output directory /tmp/uq2p3kdl
{}INFO Final process status is success

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