Cleaning up

parent fd9a4d9e
Pipeline #46545 passed with stage
in 3 minutes and 38 seconds
......@@ -94,14 +94,6 @@ class CSVToSampleLoader(TransformerMixin, BaseEstimator):
if not "path" in header:
raise ValueError("The field `path` is not available in your dataset.")
def __call__(self, f):
reader = csv.reader(f)
header = next(reader)
return [self.convert_row_to_sample(row, header) for row in reader]
def convert_row_to_sample(self, row, header):
path = row[0]
reference_id = row[1]
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment