Datasets:
bug fix v
Browse files- 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 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
| 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):
|