Skip to content
Snippets Groups Projects
Commit bccc72d1 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(dataset): check valid suffixes properly.

parent fd17be48
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ class DatasetLocalOME(DatasetLocalABC):
super().__init__(dpath)
assert len(
self.get_images()
), f"No valid files found. Formats are {suffixes}"
), f"No valid files found. Formats are {self._valid_suffixes}"
@property
def date(self):
......
#!/usr/bin/env jupyter
from aliby.pipeline import PipelineParameters, Pipeline
from pathlib import Path
import pytest
from aliby.pipeline import Pipeline, PipelineParameters
def test_local_pipeline(file: str):
params = PipelineParameters.default(
general={
"expt_id": file,
"distributed": 0,
"directory": "test_output/",
"overwrite": True,
},
tiler={"ref_channel": 0},
)
p = Pipeline(params)
if Path(file).exists():
params = PipelineParameters.default(
general={
"expt_id": file,
"distributed": 0,
"directory": "test_output/",
"overwrite": True,
},
tiler={"ref_channel": 0},
)
p = Pipeline(params)
p.run()
p.run()
else:
print("Test dataset not downloaded")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment