Skip to content

Commit

Permalink
Read from csv debug (#1058)
Browse files Browse the repository at this point in the history
* Types and Docstring update

* Update navigator_emergency.py

* error exception added

---------

Co-authored-by: Cameron Brown <me@cbrxyz.com>
Co-authored-by: cameron brown <52760912+cbrxyz@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 22, 2024
1 parent bfd946f commit 8483ec7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def read_from_csv(self, training_file: Optional[str] = None):
Args:
training_file (Optional[str]): The name of the training file.
"""
if training_file is None:
raise NotImplementedError("Cannot read without any training file.")
training_file = _get_param(training_file, self.training_file)
df = pandas.read_csv(training_file)
classes = df.values[:, 1]
Expand Down

0 comments on commit 8483ec7

Please sign in to comment.