srivarra commited on
Commit
165a979
·
1 Parent(s): 23ff9ce

base dataset adjustment

Browse files
Files changed (1) hide show
  1. 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="BASE_DATASET",
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 == "BASE_DATASET":
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