Datasets:
base dataset adjustment
Browse files- ark_example.py +2 -2
ark_example.py
CHANGED
@@ -138,7 +138,7 @@ class ArkExample(datasets.GeneratorBasedBuilder):
|
|
138 |
data_dir = dl_manager.download_and_extract(urls)
|
139 |
return [
|
140 |
datasets.SplitGenerator(
|
141 |
-
name="
|
142 |
# These kwargs will be passed to _generate_examples
|
143 |
gen_kwargs={
|
144 |
"filepath": pathlib.Path(data_dir) / "fovs"
|
@@ -154,7 +154,7 @@ class ArkExample(datasets.GeneratorBasedBuilder):
|
|
154 |
if fp.suffix in [".tiff", ".tif"]:
|
155 |
|
156 |
image_data = tifffile.imread(fp, key=0)
|
157 |
-
if self.config.name == "
|
158 |
yield fp.stem, {
|
159 |
"chan": image_data,
|
160 |
"path": fp
|
|
|
138 |
data_dir = dl_manager.download_and_extract(urls)
|
139 |
return [
|
140 |
datasets.SplitGenerator(
|
141 |
+
name="base_dataset",
|
142 |
# These kwargs will be passed to _generate_examples
|
143 |
gen_kwargs={
|
144 |
"filepath": pathlib.Path(data_dir) / "fovs"
|
|
|
154 |
if fp.suffix in [".tiff", ".tif"]:
|
155 |
|
156 |
image_data = tifffile.imread(fp, key=0)
|
157 |
+
if self.config.name == "base_dataset":
|
158 |
yield fp.stem, {
|
159 |
"chan": image_data,
|
160 |
"path": fp
|