Datasets:

Modalities:
Geospatial
Languages:
English
DOI:
Libraries:
License:
cmalbrec commited on
Commit
ac434a0
·
verified ·
1 Parent(s): ce4d91f

bug fix vi

Browse files
Files changed (1) hide show
  1. ssl4eo_eu_forest.py +3 -2
ssl4eo_eu_forest.py CHANGED
@@ -73,13 +73,14 @@ note = {This work was carried under the EvoLand project, cf. https://www.evo-lan
73
  """
74
  Streaming-compliant serving of metadata for SSL4EO data samples.
75
  """
76
- for file in filepath: # filepath is a FilesIterable
77
- with open(file, encoding="utf-8") as f:
78
  for idx, line in enumerate(f):
79
  yield idx, json.loads(line)
80
 
81
 
82
 
 
83
  def features_to_croissant(features):
84
  """
85
  Convert a HF dataset feature into a Croissant-compatible description.
 
73
  """
74
  Streaming-compliant serving of metadata for SSL4EO data samples.
75
  """
76
+ for file in filepath:
77
+ with dl_manager.open(file) as f:
78
  for idx, line in enumerate(f):
79
  yield idx, json.loads(line)
80
 
81
 
82
 
83
+
84
  def features_to_croissant(features):
85
  """
86
  Convert a HF dataset feature into a Croissant-compatible description.