Rhodes commited on
Commit
e8836b8
1 Parent(s): 26fb5d6

:hammer: Corrected features

Browse files
Files changed (1) hide show
  1. quakeset.py +2 -0
quakeset.py CHANGED
@@ -77,6 +77,7 @@ class QuakeSet(datasets.GeneratorBasedBuilder):
77
  if self.config.name == "default":
78
  features = datasets.Features(
79
  {
 
80
  "pre_post_image": datasets.Array3D(
81
  shape=(4, 512, 512), dtype="float32"
82
  ),
@@ -93,6 +94,7 @@ class QuakeSet(datasets.GeneratorBasedBuilder):
93
  elif self.config.name == "epicenter":
94
  features = datasets.Features(
95
  {
 
96
  "pre_post_image": datasets.Array3D(
97
  shape=(4, 512, 512), dtype="float32"
98
  ),
 
77
  if self.config.name == "default":
78
  features = datasets.Features(
79
  {
80
+ "sample_key": datasets.Value("string"), # sample_id
81
  "pre_post_image": datasets.Array3D(
82
  shape=(4, 512, 512), dtype="float32"
83
  ),
 
94
  elif self.config.name == "epicenter":
95
  features = datasets.Features(
96
  {
97
+ "sample_key": datasets.Value("string"), # sample_id
98
  "pre_post_image": datasets.Array3D(
99
  shape=(4, 512, 512), dtype="float32"
100
  ),