Skip to content

Single row txt and csv files are corrupted #8

Description

@sswan

It looks like the txt and csv parsers choke on single-row files:

mswan@cee-pp-ldrd02 $ cat bad_single_row.txt 
a b c
1 2 3
mswan@cee-pp-ldrd02 $ thresh bad_single_row.txt 
                         a
  +1.00000000000000000e+00
  +2.00000000000000000e+00
  +3.00000000000000000e+00
mswan@cee-pp-ldrd02 $ cat bad_single_row.csv 
a,b,c
1,2,3
mswan@cee-pp-ldrd02 $ thresh bad_single_row.csv
                         a
  +1.00000000000000000e+00
  +2.00000000000000000e+00
  +3.00000000000000000e+00
mswan@cee-pp-ldrd02 $ thresh cat "a=[1]" "b=[2]" "c=[3]"
WARNING: No files to read in.
                         a                         b                         c
  +1.00000000000000000e+00  +2.00000000000000000e+00  +3.00000000000000000e+00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions