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

Output reasonable error for incomplete lines in files #41

Open
sigvaldm opened this issue Oct 22, 2018 · 0 comments
Open

Output reasonable error for incomplete lines in files #41

sigvaldm opened this issue Oct 22, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@sigvaldm
Copy link
Owner

Now it looks like this if a line is incomplete:

$ mpl history.dat ne ni
Traceback (most recent call last):
  File "/usr/bin/mpl", line 11, in <module>
    load_entry_point('metaplot', 'console_scripts', 'mpl')()
  File "/home/sigvald/Codes/metaplot/metaplot/cli.py", line 107, in mpl
    df = DataFrame(f)
  File "/home/sigvald/Codes/metaplot/metaplot/core.py", line 134, in __init__
    self._init_from_filename(arg)
  File "/home/sigvald/Codes/metaplot/metaplot/core.py", line 142, in _init_from_filename
    self._init_from_file(file)
  File "/home/sigvald/Codes/metaplot/metaplot/core.py", line 147, in _init_from_file
    self._init_from_reader(reader)
  File "/home/sigvald/Codes/metaplot/metaplot/core.py", line 189, in _init_from_reader
    self[name] = Series(raw_data[i], units=units, **meta)
IndexError: list index out of range
@sigvaldm sigvaldm added the enhancement New feature or request label Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant