srivarra commited on
Commit
f9e58e2
1 Parent(s): 1691e35

added link review

Browse files
Files changed (1) hide show
  1. ark_example.py +6 -3
ark_example.py CHANGED
@@ -103,6 +103,7 @@ class ArkExample(datasets.GeneratorBasedBuilder):
103
  {
104
  "Channel Data": datasets.Sequence(datasets.Image()),
105
  "Channel Names": datasets.Sequence(datasets.Value("string")),
 
106
  }
107
  )
108
  else: # This is an example to show how to have different features for "first_domain" and "second_domain"
@@ -158,7 +159,6 @@ class ArkExample(datasets.GeneratorBasedBuilder):
158
 
159
  # Get the TMA FOV Name
160
  fov_name = fp.stem
161
-
162
 
163
  # Get all channels per TMA FOV
164
  channel_paths = fp.glob("*.tiff")
@@ -172,6 +172,9 @@ class ArkExample(datasets.GeneratorBasedBuilder):
172
  chan_data.append(chan_image)
173
  chan_names.append(chan_name)
174
 
175
-
176
  if self.config.name == "base_dataset":
177
- yield fov_name, {"Channel Data": chan_data, "Channel Names": chan_names}
 
 
 
 
 
103
  {
104
  "Channel Data": datasets.Sequence(datasets.Image()),
105
  "Channel Names": datasets.Sequence(datasets.Value("string")),
106
+ "Data Path:": datasets.Value("string"),
107
  }
108
  )
109
  else: # This is an example to show how to have different features for "first_domain" and "second_domain"
 
159
 
160
  # Get the TMA FOV Name
161
  fov_name = fp.stem
 
162
 
163
  # Get all channels per TMA FOV
164
  channel_paths = fp.glob("*.tiff")
 
172
  chan_data.append(chan_image)
173
  chan_names.append(chan_name)
174
 
 
175
  if self.config.name == "base_dataset":
176
+ yield fov_name, {
177
+ "Channel Data": chan_data,
178
+ "Channel Names": chan_names,
179
+ "Data Path": str(filepath),
180
+ }