Datasets:

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

debugging i

Browse files
Files changed (1) hide show
  1. ssl4eo_eu_forest.py +1 -1
ssl4eo_eu_forest.py CHANGED
@@ -71,7 +71,7 @@ note = {This work was carried under the EvoLand project, cf. https://www.evo-lan
71
  # print for path resolution verification (may appear multiple times with num_proc > 1)
72
  print("Streaming from:", file_url)
73
  # In streaming mode open(file_url) is supported by datasets' patched I/O
74
- with open(file_url, encoding="utf-8") as f:
75
  for idx, line in enumerate(f):
76
  data = json.loads(line)
77
  yield idx, data
 
71
  # print for path resolution verification (may appear multiple times with num_proc > 1)
72
  print("Streaming from:", file_url)
73
  # In streaming mode open(file_url) is supported by datasets' patched I/O
74
+ with datasets.utils.file_utils.xopen(file_url, encoding="utf-8") as f:
75
  for idx, line in enumerate(f):
76
  data = json.loads(line)
77
  yield idx, data