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

create_clk_from_csv cannot handle empty csv file #125

Open
wilko77 opened this issue Apr 18, 2018 · 0 comments
Open

create_clk_from_csv cannot handle empty csv file #125

wilko77 opened this issue Apr 18, 2018 · 0 comments
Labels

Comments

@wilko77
Copy link
Collaborator

wilko77 commented Apr 18, 2018

the error you will get looks like this:

---------------------------------------------------------------------------
StopIteration                             Traceback (most recent call last)
<ipython-input-12-d85f4714107b> in <module>()
      1 from clkhash import clk
----> 2 hashed_data_a = clk.generate_clk_from_csv(a_csv, ('key1', 'key2'), schema, validate=False)

~/Code/clkhash/clkhash/clk.py in generate_clk_from_csv(input_f, keys, schema, validate, header, progress_bar)
     90
     91     if header:
---> 92         column_names = next(reader)
     93         if header != 'ignore':
     94             validate_header(schema.fields, column_names)

StopIteration:

And that's pretty rubbish.

Aha! Link: https://csiro.aha.io/features/ANONLINK-35

@wilko77 wilko77 added the bug label Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant