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

Fixed width is not maintained for negative values in output data section #467

Open
kinverarity1 opened this issue May 19, 2021 · 0 comments
Labels
bug las-writer-code A bug or enhancement relating to code which creates LAS files

Comments

@kinverarity1
Copy link
Owner

Describe the bug
For a file containing this data section:

~A Depth      GAMN      NEUT      SP        IND       CALI
    0.05 -2163.978      -0.0    -3.049   -90.567    34.779
    0.10    56.264      -0.0    -3.049   -90.567    34.779
    0.15    71.412      -0.0    -3.049   -90.567    34.779

The default output is no longer fixed width:

~ASCII -----------------------------------------------------
    0.05000 -2163.97800       -0.0   -3.04900  -90.56700   34.77900
    0.10000   56.26400       -0.0   -3.04900  -90.56700   34.77900
    0.15000   71.41200       -0.0   -3.04900  -90.56700   34.77900

Expected behavior
At the very minimum, the output file should have fixed-width columns, i.e. the - character should be included in the calculation for the required width:

~ASCII -----------------------------------------------------
    0.05000 -2163.97800       -0.0   -3.04900  -90.56700   34.77900
    0.10000    56.26400       -0.0   -3.04900  -90.56700   34.77900
    0.15000    71.41200       -0.0   -3.04900  -90.56700   34.77900

Software versions (please complete the following information):

  • lasio version: master
@kinverarity1 kinverarity1 added bug las-writer-code A bug or enhancement relating to code which creates LAS files labels May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug las-writer-code A bug or enhancement relating to code which creates LAS files
Projects
None yet
Development

No branches or pull requests

1 participant