Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mr-c opened this issue Apr 24, 2023 · 0 comments · Fixed by #1832
Closed

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

mr-c opened this issue Apr 24, 2023 · 0 comments · Fixed by #1832

Comments

@mr-c
Copy link
Member

mr-c commented Apr 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant