lasio icon indicating copy to clipboard operation
lasio copied to clipboard

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

Open kinverarity1 opened this issue 3 years ago • 0 comments

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 avatar May 19 '21 03:05 kinverarity1