Features map : error "AttributeError: 'WriteFeaturesMap' object has no attribute 'chunk_config'"
Good afternoon, I did my first Feature Map test with 2 Sentinel2 images (one tile). But when i launch the command, i get an error message saying AttributeError: 'WriteFeaturesMap' object has no attribute 'chunk_config'. I paste below the whole message. Then also my config file. Thanks so much.
Iota2.py -config /home/geoteca/ie_tld/LABEX/iota2_Test/Formation_test3/config_classif_test.cfg
/home/geoteca/.conda/envs/iota2env/lib/python3.9/site-packages/pandas/core/computation/expressions.py:21: UserWarning: Pandas requires version '2.8.0' or newer of 'numexpr' (version '2.7.3' currently installed).
from pandas.core.computation.check import NUMEXPR_INSTALLED
Group init:
[x] Step 1: Sensors pre-processing
[x] Step 2: Generate a common masks for each sensors
Group writing:
[x] Step 3: Write features by chunk
[x] Step 4: Merge features chunks per tile
Group mosaic:
[x] Step 5: Merge features tiles into a mosaic
dashboard available at : http://10.64.103.242:8787/status
/home/geoteca/.conda/envs/iota2env/lib/python3.9/site-packages/pandas/core/computation/expressions.py:21: UserWarning: Pandas requires version '2.8.0' or newer of 'numexpr' (version '2.7.3' currently installed).
from pandas.core.computation.check import NUMEXPR_INSTALLED
Traceback (most recent call last):
File "/home/geoteca/.conda/envs/iota2env/bin/Iota2.py", line 11, in <module>
sys.exit(main())
File "/home/geoteca/.conda/envs/iota2env/lib/python3.9/site-packages/iota2-0.0.0-py3.9.egg/iota2/Iota2.py", line 253, in main
run(args.config_path, args.config_ressources, args.scheduler_type,
File "/home/geoteca/.conda/envs/iota2env/lib/python3.9/site-packages/iota2-0.0.0-py3.9.egg/iota2/Iota2.py", line 150, in run
delayed_graph = graph.build_graph()
File "/home/geoteca/.conda/envs/iota2env/lib/python3.9/site-packages/iota2-0.0.0-py3.9.egg/iota2/sequence_builders/i2_sequence_builder.py", line 73, in build_graph
_ = [
File "/home/geoteca/.conda/envs/iota2env/lib/python3.9/site-packages/iota2-0.0.0-py3.9.egg/iota2/sequence_builders/i2_sequence_builder.py", line 74, in <listcomp>
step()
File "/home/geoteca/.conda/envs/iota2env/lib/python3.9/site-packages/iota2-0.0.0-py3.9.egg/iota2/steps/write_features_map.py", line 68, in __init__
for i in range(self.chunk_config.number_of_chunks):
AttributeError: 'WriteFeaturesMap' object has no attribute 'chunk_config'
My config file below :
builders:
{
builders_class_name: ["i2_features_map"]
}
task_retry_limits :
{
allowed_retry : 0
maximum_ram : 60.0
maximum_cpu : 12
}
Sentinel_2_S2C :
{
start_date : 20230502
end_date : 20230924
}
chain :
{
output_path : '/home/geoteca/ie_tld/LABEX/iota2_Test/Formation_test3/IOTA2_Outputs/Results_features_maps'
remove_output_path : True
list_tile : 'T28PBB'
s2_s2c_path : '/home/geoteca/ie_tld/LABEX/iota2_Test/Formation_test3/sensor_data/'
spatial_resolution : 10
proj : 'EPSG:32628'
first_step: "init"
last_step: "mosaic"
}
arg_train :
{
features : ["NDVI", "NDWI", "Brightness"]
}
sensors_data_interpolation :
{
use_gapfilling : False
}