Datasets:

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

bug fix v

Browse files
Files changed (1) hide show
  1. ssl4eo_eu_forest.py +5 -3
ssl4eo_eu_forest.py CHANGED
@@ -73,9 +73,11 @@ 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
- with open(filepath, encoding="utf-8") as f:
77
- for idx, line in enumerate(f):
78
- yield idx, json.loads(line)
 
 
79
 
80
 
81
  def features_to_croissant(features):
 
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):