python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 /home/admin/workarea/git/Velours/python/prod/memo/memo.py --dashboard_places=SCCU_cam7 -j sla_mensuel -v --date=`date -d"$nowdate 15 day ago" +%Y-%m` --rootfolder_sla=/data_4/data_log/job/memo/SCCU_cam7 ' -s sla_mensuel -M 0 -S 0 -U 90,80,95 import MySQLdb succeeded Import error (python version) Need env var : LOGRASPI Raspi : , Date : 2026-08 _cr_cnf_ : /home/admin/mtr/.credentials/credentials.py _cr_cnf_ : /home/admin/mtr/.credentials/credentials.py warning , we can't find thcl infos in json_data warning , we can't find pdt infos in json_data nb_day : (5, 31) TODO : Insert select and so on SELECT id, name, misc_info, datou_id_for_right FROM MTRPhoto.dashboard_places WHERE name="SCCU_cam7"; SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4850 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4850 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4850 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4850 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! {"input_values":[]} SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4234 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4234 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4234 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4234 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11415 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11419 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11419 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11416 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11416 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11417 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11417 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11422 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11416 have datatype=10 whereas input 2 of step 11418 have datatype=6 We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 2 of step 11419 doesn't seem to be define in the database( WARNING : output 1 of step 11415 have datatype=7 whereas input 2 of step 11419 have datatype=None WARNING : type of output 3 of step 11419 doesn't seem to be define in the database( WARNING : type of input 1 of step 11416 doesn't seem to be define in the database( WARNING : type of output 1 of step 11416 doesn't seem to be define in the database( WARNING : type of input 3 of step 11417 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11416 have datatype=10 whereas input 0 of step 11420 have datatype=18 WARNING : type of input 5 of step 11418 doesn't seem to be define in the database( WARNING : output 0 of step 11420 have datatype=11 whereas input 5 of step 11418 have datatype=None WARNING : type of input 2 of step 11416 doesn't seem to be define in the database( WARNING : output 0 of step 11421 have datatype=5 whereas input 2 of step 11416 have datatype=None WARNING : output 0 of step 11418 have datatype=10 whereas input 0 of step 11422 have datatype=18 DataTypes for each output/input checked ! {"input_values":[]} Unexpected error treated as WARNING for now expected given param in final step {'name_pipeline': 'aggregate_carac_ratio', 'hashtag_type': 4230, 'hashtag_proportion': 'papier,carton,metal,pet_clair,autre,pehd,pet_fonce', 'hashtag_parmi': 'refus', 'hashtag_weights': {'autre': 3.0, 'barquette_avec_film': 3.0, 'carton': 3.0, 'metal': 3.0, 'papier': 3.0, 'pehd': 3.0, 'pet_fonce': 3.0, 'pet_clair': 1.0, 'flou': 1.0, 'mal_croppe': 1.0}, 'option_sccu': 1} Found hashtag_parmi in final step, will be used and useful if different from matiere_majoritaire in classifier Fonction SLA_MENSUEL nb_day : (5, 31) TODO : Insert select and so on SELECT id, name, misc_info, datou_id_for_right FROM MTRPhoto.dashboard_places WHERE name="SCCU_cam7"; SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4850 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4850 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4850 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4850 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! {"input_values":[]} SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4234 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4234 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4234 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4234 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11415 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11419 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11419 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11416 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11416 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11417 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11417 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11422 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11416 have datatype=10 whereas input 2 of step 11418 have datatype=6 We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 2 of step 11419 doesn't seem to be define in the database( WARNING : output 1 of step 11415 have datatype=7 whereas input 2 of step 11419 have datatype=None WARNING : type of output 3 of step 11419 doesn't seem to be define in the database( WARNING : type of input 1 of step 11416 doesn't seem to be define in the database( WARNING : type of output 1 of step 11416 doesn't seem to be define in the database( WARNING : type of input 3 of step 11417 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11416 have datatype=10 whereas input 0 of step 11420 have datatype=18 WARNING : type of input 5 of step 11418 doesn't seem to be define in the database( WARNING : output 0 of step 11420 have datatype=11 whereas input 5 of step 11418 have datatype=None WARNING : type of input 2 of step 11416 doesn't seem to be define in the database( WARNING : output 0 of step 11421 have datatype=5 whereas input 2 of step 11416 have datatype=None WARNING : output 0 of step 11418 have datatype=10 whereas input 0 of step 11422 have datatype=18 DataTypes for each output/input checked ! {"input_values":[]} Unexpected error treated as WARNING for now expected given param in final step {'name_pipeline': 'aggregate_carac_ratio', 'hashtag_type': 4230, 'hashtag_proportion': 'papier,carton,metal,pet_clair,autre,pehd,pet_fonce', 'hashtag_parmi': 'refus', 'hashtag_weights': {'autre': 3.0, 'barquette_avec_film': 3.0, 'carton': 3.0, 'metal': 3.0, 'papier': 3.0, 'pehd': 3.0, 'pet_fonce': 3.0, 'pet_clair': 1.0, 'flou': 1.0, 'mal_croppe': 1.0}, 'option_sccu': 1} Found hashtag_parmi in final step, will be used and useful if different from matiere_majoritaire in classifier place_id : 204 month : 08 mtr_id : dashboard_places : SCCU_cam7 date : 2026-08 year : 2026 raspi : 0 select count(distinct mtr_photo_id) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (select id from MTRUser.mtr_portfolios where id in (select mtr_portfolio_id from MTRPhoto.dashboard_results where dashboard_run_id in(select last_run_id from MTRPhoto.dashboard_entry_day where dashboard_place_id in (select id from MTRPhoto.dashboard_places where name = 'SCCU_cam7' and date like '%2026-08%') and created_at like '%2026-08%'))); nb_day : (5, 31) after unwanted_material_data We return tuple() but get_coverage_data_from_list_of_date return unexpectedly data from stuff in error with raspi=0 so we force here ! after coverage_data SELECT DATE(date_debut) as date, sum(qualite*nombre_balle)/sum(nombre_balle), nombre_balle FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_entry_day ded where ded.dashboard_place_id = 204 and month(ded.date) = 08 and year(ded.date) = 2026 and dr.dashboard_run_id=ded.last_run_id and dr.qualite>=0 GROUP BY ded.date order by dr.date_debut; SELECT DATE(date_debut) as date, sum(qualite*nombre_balle)/sum(nombre_balle), nombre_balle FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_entry_day ded where dr.hashtag = '_______incineration' and ded.dashboard_place_id = 204 and month(ded.date) = 08 and year(ded.date) = 2026 and dr.dashboard_run_id=ded.last_run_id and dr.qualite>=0 GROUP BY ded.date order by dr.date_debut; select avg(cps.score) as score, SUBSTRING_INDEX(SUBSTRING_INDEX(mp.name,'__', -1), '_', 1) as sbstr, SUBSTRING_INDEX(SUBSTRING_INDEX(mp.name,'_', -2), '_', 1) as sbstr2, SUBSTRING_INDEX(mp.name,'_', -1) as sbstr3 FROM MTRUser.mtr_portfolio_photos mpp, MTRUser.mtr_portfolios mp,MTRPhoto.class_photo_score cps,MTRBack.hashtags h,MTRPhoto.dashboard_results dr,MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp WHERE mp.id=mpp.mtr_portfolio_id and cps.photo_id=mpp.mtr_photo_id and h.hashtag_id=cps.hashtag_id and dr.mtr_portfolio_id = mpp.mtr_portfolio_id and dr.dashboard_run_id = ded.last_run_id and ded.dashboard_place_id = dp.id and h.hashtag in ('blur', 'mean_blur', 'clear') and dp.id = 204 and mp.name like '%082026%' and cps.thcl = 1533 GROUP BY sbstr ; after number_of_batch date_start : 2026-08-01 : dt_date_just_month_year : 2026-08-01 00:00:00 : VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! Error parsing crontab ! [Errno 2] No such file or directory: '' You better check your LOGRASPI env !!! after pl.get_datou_sts_from_crontab : verbose : True no sts found, try to find from database SELECT dri.id FROM MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp WHERE dp.name= "SCCU_cam7" AND ded.dashboard_place_id=dp.id AND dri.dashboard_entry_day=ded.id AND dri.id=ded.last_run_id AND ded.date >= "2026-08-01" AND ded.date <= "2026-08-31" SELECT h.hashtag as unwanted_material, substr(dr.hashtag,8) as main_material, ptp.type as pht_type, sum(pcr.value*dr.nombre_balle)/sum(dr.nombre_balle) as ratio, count(distinct mpp.mtr_photo_id) as nb_photo, group_concat(distinct ptp.mtr_portfolio_id_2) as list_port_cont, group_concat(distinct concat(cast(ptp.mtr_portfolio_id_1 as char), ":", cast(ptp.mtr_portfolio_id_2 as char))) as assoc_port, group_concat(distinct concat(cast(ptp.mtr_portfolio_id_1 as char), ":", h.hashtag, ":", cast(ptp.type as char), ":", cast(ptp.mtr_portfolio_id_2 as char))) as assoc_mat FROM MTRPhoto.dashboard_results dr, MTRPhoto.mtr_port_to_port_ids ptp, MTRUser.mtr_portfolio_photos mpp, MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h WHERE dr.dashboard_run_id IN (2987114,2987344,2987534,2988216,2988448) AND dr.mtr_portfolio_id=ptp.mtr_portfolio_id_1 AND dr.qualite >= 0 AND mpp.mtr_portfolio_id=ptp.mtr_portfolio_id_2 AND pcr.portfolio_id=ptp.mtr_portfolio_id_1 AND h.hashtag_id = pcr.hashtag_id AND ptp.type = pcr.hashtag_type AND mpp.hide_status = 0 AND ptp.hashtag_id=h.hashtag_id group by h.hashtag, dr.hashtag, ptp.type; VR TODO TO BETTER PARSE ! ({'unwanted_material': 'autre', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.013306850396293726, 'nb_photo': 706, 'list_port_cont': '31046935,31046972,31047019,31047041,31047082,31047115,31047160,31047382,31047518,31047685,31047820,31048209,31048246,31048404,31048823,31048866,31049779,31049986,31050276,31050490,31050855,31051123,31051250,31051499,31051724,31051921,31051962,31052240,31052563,31052773,31052977,31053205,31053488,31053688,31053861,31054163,31054448,31054686,31054715', 'assoc_port': '31045064:31046972,31045065:31046935,31045066:31047041,31045067:31047019,31045068:31047082,31045069:31047115,31045070:31047160,31047221:31047382,31047411:31047518,31047563:31047685,31047764:31047820,31048153:31048246,31048154:31048209,31048361:31048404,31048780:31048823,31048781:31048866,31049690:31049779,31049896:31049986,31050101:31050276,31050349:31050490,31050595:31050855,31050889:31051123,31051161:31051250,31051369:31051499,31051619:31051724,31051831:31051921,31051832:31051962,31052141:31052240,31052386:31052563,31052637:31052773,31052881:31052977,31053093:31053205,31053354:31053488,31053637:31053688,31053845:31053861,31054024:31054163,31054317:31054448,31054570:31054686,31054571:31054715', 'assoc_mat': '31045064:autre:4230:31046972,31045065:autre:4230:31046935,31045066:autre:4230:31047041,31045067:autre:4230:31047019,31045068:autre:4230:31047082,31045069:autre:4230:31047115,31045070:autre:4230:31047160,31047221:autre:4230:31047382,31047411:autre:4230:31047518,31047563:autre:4230:31047685,31047764:autre:4230:31047820,31048153:autre:4230:31048246,31048154:autre:4230:31048209,31048361:autre:4230:31048404,31048780:autre:4230:31048823,31048781:autre:4230:31048866,31049690:autre:4230:31049779,31049896:autre:4230:31049986,31050101:autre:4230:31050276,31050349:autre:4230:31050490,31050595:autre:4230:31050855,31050889:autre:4230:31051123,31051161:autre:4230:31051250,31051369:autre:4230:31051499,31051619:autre:4230:31051724,31051831:autre:4230:31051921,31051832:autre:4230:31051962,31052141:autre:4230:31052240,31052386:autre:4230:31052563,31052637:autre:4230:31052773,31052881:autre:4230:31052977,31053093:autre:4230:31053205,31053354:autre:4230:31053488,31053637:autre:4230:31053688,31053845:autre:4230:31053861,31054024:'}, {'unwanted_material': 'carton', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.03057417954345101, 'nb_photo': 2910, 'list_port_cont': '31046945,31046981,31047018,31047054,31047088,31047124,31047163,31047386,31047522,31047700,31047821,31048220,31048258,31048405,31048832,31048870,31049781,31049994,31050283,31050492,31050847,31051131,31051263,31051500,31051725,31051929,31051963,31052235,31052559,31052769,31052986,31053209,31053490,31053698,31053875,31054166,31054459,31054677,31054720', 'assoc_port': '31045064:31046981,31045065:31046945,31045066:31047054,31045067:31047018,31045068:31047088,31045069:31047124,31045070:31047163,31047221:31047386,31047411:31047522,31047563:31047700,31047764:31047821,31048153:31048258,31048154:31048220,31048361:31048405,31048780:31048832,31048781:31048870,31049690:31049781,31049896:31049994,31050101:31050283,31050349:31050492,31050595:31050847,31050889:31051131,31051161:31051263,31051369:31051500,31051619:31051725,31051831:31051929,31051832:31051963,31052141:31052235,31052386:31052559,31052637:31052769,31052881:31052986,31053093:31053209,31053354:31053490,31053637:31053698,31053845:31053875,31054024:31054166,31054317:31054459,31054570:31054677,31054571:31054720', 'assoc_mat': '31045064:carton:4230:31046981,31045065:carton:4230:31046945,31045066:carton:4230:31047054,31045067:carton:4230:31047018,31045068:carton:4230:31047088,31045069:carton:4230:31047124,31045070:carton:4230:31047163,31047221:carton:4230:31047386,31047411:carton:4230:31047522,31047563:carton:4230:31047700,31047764:carton:4230:31047821,31048153:carton:4230:31048258,31048154:carton:4230:31048220,31048361:carton:4230:31048405,31048780:carton:4230:31048832,31048781:carton:4230:31048870,31049690:carton:4230:31049781,31049896:carton:4230:31049994,31050101:carton:4230:31050283,31050349:carton:4230:31050492,31050595:carton:4230:31050847,31050889:carton:4230:31051131,31051161:carton:4230:31051263,31051369:carton:4230:31051500,31051619:carton:4230:31051725,31051831:carton:4230:31051929,31051832:carton:4230:31051963,31052141:carton:4230:31052235,31052386:carton:4230:31052559,31052637:carton:4230:31052769,31052881:carton:4230:31052986,31053093:carton:4230:31053209,31053354:carton:4230:31053490,31053637:carton:4230:31053698,3105'}, {'unwanted_material': 'metal', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.0007520898244626382, 'nb_photo': 47, 'list_port_cont': '31046932,31046969,31047004,31047079,31047122,31047381,31048222,31048252,31050272,31050488,31050858,31051130,31051247,31051511,31051713,31051964,31052242,31052554,31052777,31052972,31053193,31054167,31054453', 'assoc_port': '31045064:31046969,31045065:31046932,31045067:31047004,31045068:31047079,31045069:31047122,31047221:31047381,31048153:31048252,31048154:31048222,31050101:31050272,31050349:31050488,31050595:31050858,31050889:31051130,31051161:31051247,31051369:31051511,31051619:31051713,31051832:31051964,31052141:31052242,31052386:31052554,31052637:31052777,31052881:31052972,31053093:31053193,31054024:31054167,31054317:31054453', 'assoc_mat': '31045064:metal:4230:31046969,31045065:metal:4230:31046932,31045067:metal:4230:31047004,31045068:metal:4230:31047079,31045069:metal:4230:31047122,31047221:metal:4230:31047381,31048153:metal:4230:31048252,31048154:metal:4230:31048222,31050101:metal:4230:31050272,31050349:metal:4230:31050488,31050595:metal:4230:31050858,31050889:metal:4230:31051130,31051161:metal:4230:31051247,31051369:metal:4230:31051511,31051619:metal:4230:31051713,31051832:metal:4230:31051964,31052141:metal:4230:31052242,31052386:metal:4230:31052554,31052637:metal:4230:31052777,31052881:metal:4230:31052972,31053093:metal:4230:31053193,31054024:metal:4230:31054167,31054317:metal:4230:31054453'}, {'unwanted_material': 'papier', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.1646133395240726, 'nb_photo': 13413, 'list_port_cont': '31046943,31046978,31047012,31047050,31047091,31047126,31047158,31047385,31047526,31047699,31047819,31048213,31048253,31048411,31048834,31048872,31049788,31049997,31050274,31050493,31050851,31051134,31051259,31051512,31051722,31051930,31051971,31052241,31052555,31052770,31052978,31053199,31053494,31053700,31053877,31054159,31054456,31054687,31054722', 'assoc_port': '31045064:31046978,31045065:31046943,31045066:31047050,31045067:31047012,31045068:31047091,31045069:31047126,31045070:31047158,31047221:31047385,31047411:31047526,31047563:31047699,31047764:31047819,31048153:31048253,31048154:31048213,31048361:31048411,31048780:31048834,31048781:31048872,31049690:31049788,31049896:31049997,31050101:31050274,31050349:31050493,31050595:31050851,31050889:31051134,31051161:31051259,31051369:31051512,31051619:31051722,31051831:31051930,31051832:31051971,31052141:31052241,31052386:31052555,31052637:31052770,31052881:31052978,31053093:31053199,31053354:31053494,31053637:31053700,31053845:31053877,31054024:31054159,31054317:31054456,31054570:31054687,31054571:31054722', 'assoc_mat': '31045064:papier:4230:31046978,31045065:papier:4230:31046943,31045066:papier:4230:31047050,31045067:papier:4230:31047012,31045068:papier:4230:31047091,31045069:papier:4230:31047126,31045070:papier:4230:31047158,31047221:papier:4230:31047385,31047411:papier:4230:31047526,31047563:papier:4230:31047699,31047764:papier:4230:31047819,31048153:papier:4230:31048253,31048154:papier:4230:31048213,31048361:papier:4230:31048411,31048780:papier:4230:31048834,31048781:papier:4230:31048872,31049690:papier:4230:31049788,31049896:papier:4230:31049997,31050101:papier:4230:31050274,31050349:papier:4230:31050493,31050595:papier:4230:31050851,31050889:papier:4230:31051134,31051161:papier:4230:31051259,31051369:papier:4230:31051512,31051619:papier:4230:31051722,31051831:papier:4230:31051930,31051832:papier:4230:31051971,31052141:papier:4230:31052241,31052386:papier:4230:31052555,31052637:papier:4230:31052770,31052881:papier:4230:31052978,31053093:papier:4230:31053199,31053354:papier:4230:31053494,31053637:papier:4230:31053700,3105'}, {'unwanted_material': 'pehd', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.0022768064251044895, 'nb_photo': 50, 'list_port_cont': '31046982,31047017,31047053,31047085,31047116,31047148,31047389,31047525,31047817,31048219,31049995,31050281,31050494,31050852,31051135,31051262,31051509,31051927,31052776,31054682', 'assoc_port': '31045064:31046982,31045066:31047053,31045067:31047017,31045068:31047085,31045069:31047116,31045070:31047148,31047221:31047389,31047411:31047525,31047764:31047817,31048154:31048219,31049896:31049995,31050101:31050281,31050349:31050494,31050595:31050852,31050889:31051135,31051161:31051262,31051369:31051509,31051831:31051927,31052637:31052776,31054570:31054682', 'assoc_mat': '31045064:pehd:4230:31046982,31045066:pehd:4230:31047053,31045067:pehd:4230:31047017,31045068:pehd:4230:31047085,31045069:pehd:4230:31047116,31045070:pehd:4230:31047148,31047221:pehd:4230:31047389,31047411:pehd:4230:31047525,31047764:pehd:4230:31047817,31048154:pehd:4230:31048219,31049896:pehd:4230:31049995,31050101:pehd:4230:31050281,31050349:pehd:4230:31050494,31050595:pehd:4230:31050852,31050889:pehd:4230:31051135,31051161:pehd:4230:31051262,31051369:pehd:4230:31051509,31051831:pehd:4230:31051927,31052637:pehd:4230:31052776,31054570:pehd:4230:31054682'}, {'unwanted_material': 'pet_clair', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.022424308055036903, 'nb_photo': 1176, 'list_port_cont': '31046946,31046980,31047014,31047048,31047083,31047119,31047161,31047379,31047523,31047702,31047813,31048224,31048260,31048410,31048831,31048871,31049784,31049998,31050282,31050485,31050856,31051128,31051256,31051507,31051709,31051928,31051967,31052238,31052556,31052772,31052981,31053208,31053496,31053689,31053876,31054164,31054458,31054683,31054717', 'assoc_port': '31045064:31046980,31045065:31046946,31045066:31047048,31045067:31047014,31045068:31047083,31045069:31047119,31045070:31047161,31047221:31047379,31047411:31047523,31047563:31047702,31047764:31047813,31048153:31048260,31048154:31048224,31048361:31048410,31048780:31048831,31048781:31048871,31049690:31049784,31049896:31049998,31050101:31050282,31050349:31050485,31050595:31050856,31050889:31051128,31051161:31051256,31051369:31051507,31051619:31051709,31051831:31051928,31051832:31051967,31052141:31052238,31052386:31052556,31052637:31052772,31052881:31052981,31053093:31053208,31053354:31053496,31053637:31053689,31053845:31053876,31054024:31054164,31054317:31054458,31054570:31054683,31054571:31054717', 'assoc_mat': '31045064:pet_clair:4230:31046980,31045065:pet_clair:4230:31046946,31045066:pet_clair:4230:31047048,31045067:pet_clair:4230:31047014,31045068:pet_clair:4230:31047083,31045069:pet_clair:4230:31047119,31045070:pet_clair:4230:31047161,31047221:pet_clair:4230:31047379,31047411:pet_clair:4230:31047523,31047563:pet_clair:4230:31047702,31047764:pet_clair:4230:31047813,31048153:pet_clair:4230:31048260,31048154:pet_clair:4230:31048224,31048361:pet_clair:4230:31048410,31048780:pet_clair:4230:31048831,31048781:pet_clair:4230:31048871,31049690:pet_clair:4230:31049784,31049896:pet_clair:4230:31049998,31050101:pet_clair:4230:31050282,31050349:pet_clair:4230:31050485,31050595:pet_clair:4230:31050856,31050889:pet_clair:4230:31051128,31051161:pet_clair:4230:31051256,31051369:pet_clair:4230:31051507,31051619:pet_clair:4230:31051709,31051831:pet_clair:4230:31051928,31051832:pet_clair:4230:31051967,31052141:pet_clair:4230:31052238,31052386:pet_clair:4230:31052556,31052637:pet_clair:4230:31052772,31052881:pet_clair:4230:31052981,3'}, {'unwanted_material': 'pet_fonce', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.001394228216694465, 'nb_photo': 33, 'list_port_cont': '31046934,31046979,31047156,31048248,31050277,31050496,31050857,31051138,31051258,31051934,31052771,31053489,31053702,31054450,31054684', 'assoc_port': '31045064:31046979,31045065:31046934,31045070:31047156,31048153:31048248,31050101:31050277,31050349:31050496,31050595:31050857,31050889:31051138,31051161:31051258,31051831:31051934,31052637:31052771,31053354:31053489,31053637:31053702,31054317:31054450,31054570:31054684', 'assoc_mat': '31045064:pet_fonce:4230:31046979,31045065:pet_fonce:4230:31046934,31045070:pet_fonce:4230:31047156,31048153:pet_fonce:4230:31048248,31050101:pet_fonce:4230:31050277,31050349:pet_fonce:4230:31050496,31050595:pet_fonce:4230:31050857,31050889:pet_fonce:4230:31051138,31051161:pet_fonce:4230:31051258,31051831:pet_fonce:4230:31051934,31052637:pet_fonce:4230:31052771,31053354:pet_fonce:4230:31053489,31053637:pet_fonce:4230:31053702,31054317:pet_fonce:4230:31054450,31054570:pet_fonce:4230:31054684'}) select count(distinct mtr_photo_id) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (select mtr_portfolio_id from MTRPhoto.dashboard_results where dashboard_run_id in(2987114,2987344,2987534,2988216,2988448)); INSERT ignore into MTRUser.mtr_portfolio_photos (`mtr_portfolio_id`, `mtr_photo_id`) SELECT 31048697, mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (31046935,31046972,31047019,31047041,31047082,31047115,31047160,31047382,31047518,31047685,31047820,31048209,31048246,31048404,31048823,31048866,31049779,31049986,31050276,31050490,31050855,31051123,31051250,31051499,31051724,31051921,31051962,31052240,31052563,31052773,31052977,31053205,31053488,31053688,31053861,31054163,31054448,31054686,31054715 ) and hide_status = 0 ORDER BY mtr_photo_id INSERT ignore into MTRUser.mtr_portfolio_photos (`mtr_portfolio_id`, `mtr_photo_id`) SELECT 31048698, mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (31046945,31046981,31047018,31047054,31047088,31047124,31047163,31047386,31047522,31047700,31047821,31048220,31048258,31048405,31048832,31048870,31049781,31049994,31050283,31050492,31050847,31051131,31051263,31051500,31051725,31051929,31051963,31052235,31052559,31052769,31052986,31053209,31053490,31053698,31053875,31054166,31054459,31054677,31054720 ) and hide_status = 0 ORDER BY mtr_photo_id INSERT ignore into MTRUser.mtr_portfolio_photos (`mtr_portfolio_id`, `mtr_photo_id`) SELECT 31048699, mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (31046932,31046969,31047004,31047079,31047122,31047381,31048222,31048252,31050272,31050488,31050858,31051130,31051247,31051511,31051713,31051964,31052242,31052554,31052777,31052972,31053193,31054167,31054453 ) and hide_status = 0 ORDER BY mtr_photo_id INSERT ignore into MTRUser.mtr_portfolio_photos (`mtr_portfolio_id`, `mtr_photo_id`) SELECT 31048700, mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (31046943,31046978,31047012,31047050,31047091,31047126,31047158,31047385,31047526,31047699,31047819,31048213,31048253,31048411,31048834,31048872,31049788,31049997,31050274,31050493,31050851,31051134,31051259,31051512,31051722,31051930,31051971,31052241,31052555,31052770,31052978,31053199,31053494,31053700,31053877,31054159,31054456,31054687,31054722 ) and hide_status = 0 ORDER BY mtr_photo_id INSERT ignore into MTRUser.mtr_portfolio_photos (`mtr_portfolio_id`, `mtr_photo_id`) SELECT 31048701, mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (31046982,31047017,31047053,31047085,31047116,31047148,31047389,31047525,31047817,31048219,31049995,31050281,31050494,31050852,31051135,31051262,31051509,31051927,31052776,31054682 ) and hide_status = 0 ORDER BY mtr_photo_id INSERT ignore into MTRUser.mtr_portfolio_photos (`mtr_portfolio_id`, `mtr_photo_id`) SELECT 31048702, mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (31046946,31046980,31047014,31047048,31047083,31047119,31047161,31047379,31047523,31047702,31047813,31048224,31048260,31048410,31048831,31048871,31049784,31049998,31050282,31050485,31050856,31051128,31051256,31051507,31051709,31051928,31051967,31052238,31052556,31052772,31052981,31053208,31053496,31053689,31053876,31054164,31054458,31054683,31054717 ) and hide_status = 0 ORDER BY mtr_photo_id INSERT ignore into MTRUser.mtr_portfolio_photos (`mtr_portfolio_id`, `mtr_photo_id`) SELECT 31048703, mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (31046934,31046979,31047156,31048248,31050277,31050496,31050857,31051138,31051258,31051934,31052771,31053489,31053702,31054450,31054684 ) and hide_status = 0 ORDER BY mtr_photo_id Voici le lien velours for incineration : https://www.fotonower.com/velours/31048697,31048698,31048699,31048700,31048701,31048702,31048703?tags=autre,carton,metal,papier,pehd,pet_clair,pet_fonce after get_hostname_from_raspi hasthag : incineration hasthag that could be used but not yet : _______refus SELECT substr(hashtag,8), substr(date_debut,1,7) as month, (sum(qualite*nombre_balle)/sum(nombre_balle)) FROM MTRPhoto.dashboard_results WHERE hashtag = '_______incineration' and qualite >=0 and dashboard_run_id in (select last_run_id from MTRPhoto.dashboard_entry_day where dashboard_place_id=204 and date >='2026-08-01' and date <= '2026-08-31') GROUP BY month order by month; after impurety_average_per_hashtag {'number_of_analysed_photos': ((79,),), 'unwanted_material_monthly_percentage': ((0.7813139312284906,),), 'material_repartition': (('incineration', 79),), 'material_dict': {'incineration': 79}, 'coverage_data': (), 'impurety_average_data': ((datetime.date(2026, 8, 14), 0.7991885963154561, 3), (datetime.date(2026, 8, 15), 0.8029459091935757, 1), (datetime.date(2026, 8, 16), 0.8241171846386712, 1), (datetime.date(2026, 8, 22), 0.7391521885542333, 1), (datetime.date(2026, 8, 23), 0.8046610167747885, 1)), 'impurety_average_data_per_hashtag': {'incineration': ((datetime.date(2026, 8, 14), 0.7991885963154561, 3), (datetime.date(2026, 8, 15), 0.8029459091935757, 1), (datetime.date(2026, 8, 16), 0.8241171846386712, 1), (datetime.date(2026, 8, 22), 0.7391521885542333, 1), (datetime.date(2026, 8, 23), 0.8046610167747885, 1))}, 'quality_array': [['-7.834164452777389', '14082026'], ['-8.15396188000904', '15082026'], ['-8.00489469434096', '16082026'], ['-7.679896178077161', '22082026'], ['-7.677024066795651', '23082026']], 'number_of_batch': ((39,),), 'datou_id_sts': 4850, 'map_hashtag_number_mat': {'hash_to_mat_nb': ({'unwanted_material': 'autre', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.013306850396293726, 'nb_photo': 706, 'list_port_cont': '31046935,31046972,31047019,31047041,31047082,31047115,31047160,31047382,31047518,31047685,31047820,31048209,31048246,31048404,31048823,31048866,31049779,31049986,31050276,31050490,31050855,31051123,31051250,31051499,31051724,31051921,31051962,31052240,31052563,31052773,31052977,31053205,31053488,31053688,31053861,31054163,31054448,31054686,31054715', 'assoc_port': '31045064:31046972,31045065:31046935,31045066:31047041,31045067:31047019,31045068:31047082,31045069:31047115,31045070:31047160,31047221:31047382,31047411:31047518,31047563:31047685,31047764:31047820,31048153:31048246,31048154:31048209,31048361:31048404,31048780:31048823,31048781:31048866,31049690:31049779,31049896:31049986,31050101:31050276,31050349:31050490,31050595:31050855,31050889:31051123,31051161:31051250,31051369:31051499,31051619:31051724,31051831:31051921,31051832:31051962,31052141:31052240,31052386:31052563,31052637:31052773,31052881:31052977,31053093:31053205,31053354:31053488,31053637:31053688,31053845:31053861,31054024:31054163,31054317:31054448,31054570:31054686,31054571:31054715', 'assoc_mat': '31045064:autre:4230:31046972,31045065:autre:4230:31046935,31045066:autre:4230:31047041,31045067:autre:4230:31047019,31045068:autre:4230:31047082,31045069:autre:4230:31047115,31045070:autre:4230:31047160,31047221:autre:4230:31047382,31047411:autre:4230:31047518,31047563:autre:4230:31047685,31047764:autre:4230:31047820,31048153:autre:4230:31048246,31048154:autre:4230:31048209,31048361:autre:4230:31048404,31048780:autre:4230:31048823,31048781:autre:4230:31048866,31049690:autre:4230:31049779,31049896:autre:4230:31049986,31050101:autre:4230:31050276,31050349:autre:4230:31050490,31050595:autre:4230:31050855,31050889:autre:4230:31051123,31051161:autre:4230:31051250,31051369:autre:4230:31051499,31051619:autre:4230:31051724,31051831:autre:4230:31051921,31051832:autre:4230:31051962,31052141:autre:4230:31052240,31052386:autre:4230:31052563,31052637:autre:4230:31052773,31052881:autre:4230:31052977,31053093:autre:4230:31053205,31053354:autre:4230:31053488,31053637:autre:4230:31053688,31053845:autre:4230:31053861,31054024:'}, {'unwanted_material': 'carton', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.03057417954345101, 'nb_photo': 2910, 'list_port_cont': '31046945,31046981,31047018,31047054,31047088,31047124,31047163,31047386,31047522,31047700,31047821,31048220,31048258,31048405,31048832,31048870,31049781,31049994,31050283,31050492,31050847,31051131,31051263,31051500,31051725,31051929,31051963,31052235,31052559,31052769,31052986,31053209,31053490,31053698,31053875,31054166,31054459,31054677,31054720', 'assoc_port': '31045064:31046981,31045065:31046945,31045066:31047054,31045067:31047018,31045068:31047088,31045069:31047124,31045070:31047163,31047221:31047386,31047411:31047522,31047563:31047700,31047764:31047821,31048153:31048258,31048154:31048220,31048361:31048405,31048780:31048832,31048781:31048870,31049690:31049781,31049896:31049994,31050101:31050283,31050349:31050492,31050595:31050847,31050889:31051131,31051161:31051263,31051369:31051500,31051619:31051725,31051831:31051929,31051832:31051963,31052141:31052235,31052386:31052559,31052637:31052769,31052881:31052986,31053093:31053209,31053354:31053490,31053637:31053698,31053845:31053875,31054024:31054166,31054317:31054459,31054570:31054677,31054571:31054720', 'assoc_mat': '31045064:carton:4230:31046981,31045065:carton:4230:31046945,31045066:carton:4230:31047054,31045067:carton:4230:31047018,31045068:carton:4230:31047088,31045069:carton:4230:31047124,31045070:carton:4230:31047163,31047221:carton:4230:31047386,31047411:carton:4230:31047522,31047563:carton:4230:31047700,31047764:carton:4230:31047821,31048153:carton:4230:31048258,31048154:carton:4230:31048220,31048361:carton:4230:31048405,31048780:carton:4230:31048832,31048781:carton:4230:31048870,31049690:carton:4230:31049781,31049896:carton:4230:31049994,31050101:carton:4230:31050283,31050349:carton:4230:31050492,31050595:carton:4230:31050847,31050889:carton:4230:31051131,31051161:carton:4230:31051263,31051369:carton:4230:31051500,31051619:carton:4230:31051725,31051831:carton:4230:31051929,31051832:carton:4230:31051963,31052141:carton:4230:31052235,31052386:carton:4230:31052559,31052637:carton:4230:31052769,31052881:carton:4230:31052986,31053093:carton:4230:31053209,31053354:carton:4230:31053490,31053637:carton:4230:31053698,3105'}, {'unwanted_material': 'metal', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.0007520898244626382, 'nb_photo': 47, 'list_port_cont': '31046932,31046969,31047004,31047079,31047122,31047381,31048222,31048252,31050272,31050488,31050858,31051130,31051247,31051511,31051713,31051964,31052242,31052554,31052777,31052972,31053193,31054167,31054453', 'assoc_port': '31045064:31046969,31045065:31046932,31045067:31047004,31045068:31047079,31045069:31047122,31047221:31047381,31048153:31048252,31048154:31048222,31050101:31050272,31050349:31050488,31050595:31050858,31050889:31051130,31051161:31051247,31051369:31051511,31051619:31051713,31051832:31051964,31052141:31052242,31052386:31052554,31052637:31052777,31052881:31052972,31053093:31053193,31054024:31054167,31054317:31054453', 'assoc_mat': '31045064:metal:4230:31046969,31045065:metal:4230:31046932,31045067:metal:4230:31047004,31045068:metal:4230:31047079,31045069:metal:4230:31047122,31047221:metal:4230:31047381,31048153:metal:4230:31048252,31048154:metal:4230:31048222,31050101:metal:4230:31050272,31050349:metal:4230:31050488,31050595:metal:4230:31050858,31050889:metal:4230:31051130,31051161:metal:4230:31051247,31051369:metal:4230:31051511,31051619:metal:4230:31051713,31051832:metal:4230:31051964,31052141:metal:4230:31052242,31052386:metal:4230:31052554,31052637:metal:4230:31052777,31052881:metal:4230:31052972,31053093:metal:4230:31053193,31054024:metal:4230:31054167,31054317:metal:4230:31054453'}, {'unwanted_material': 'papier', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.1646133395240726, 'nb_photo': 13413, 'list_port_cont': '31046943,31046978,31047012,31047050,31047091,31047126,31047158,31047385,31047526,31047699,31047819,31048213,31048253,31048411,31048834,31048872,31049788,31049997,31050274,31050493,31050851,31051134,31051259,31051512,31051722,31051930,31051971,31052241,31052555,31052770,31052978,31053199,31053494,31053700,31053877,31054159,31054456,31054687,31054722', 'assoc_port': '31045064:31046978,31045065:31046943,31045066:31047050,31045067:31047012,31045068:31047091,31045069:31047126,31045070:31047158,31047221:31047385,31047411:31047526,31047563:31047699,31047764:31047819,31048153:31048253,31048154:31048213,31048361:31048411,31048780:31048834,31048781:31048872,31049690:31049788,31049896:31049997,31050101:31050274,31050349:31050493,31050595:31050851,31050889:31051134,31051161:31051259,31051369:31051512,31051619:31051722,31051831:31051930,31051832:31051971,31052141:31052241,31052386:31052555,31052637:31052770,31052881:31052978,31053093:31053199,31053354:31053494,31053637:31053700,31053845:31053877,31054024:31054159,31054317:31054456,31054570:31054687,31054571:31054722', 'assoc_mat': '31045064:papier:4230:31046978,31045065:papier:4230:31046943,31045066:papier:4230:31047050,31045067:papier:4230:31047012,31045068:papier:4230:31047091,31045069:papier:4230:31047126,31045070:papier:4230:31047158,31047221:papier:4230:31047385,31047411:papier:4230:31047526,31047563:papier:4230:31047699,31047764:papier:4230:31047819,31048153:papier:4230:31048253,31048154:papier:4230:31048213,31048361:papier:4230:31048411,31048780:papier:4230:31048834,31048781:papier:4230:31048872,31049690:papier:4230:31049788,31049896:papier:4230:31049997,31050101:papier:4230:31050274,31050349:papier:4230:31050493,31050595:papier:4230:31050851,31050889:papier:4230:31051134,31051161:papier:4230:31051259,31051369:papier:4230:31051512,31051619:papier:4230:31051722,31051831:papier:4230:31051930,31051832:papier:4230:31051971,31052141:papier:4230:31052241,31052386:papier:4230:31052555,31052637:papier:4230:31052770,31052881:papier:4230:31052978,31053093:papier:4230:31053199,31053354:papier:4230:31053494,31053637:papier:4230:31053700,3105'}, {'unwanted_material': 'pehd', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.0022768064251044895, 'nb_photo': 50, 'list_port_cont': '31046982,31047017,31047053,31047085,31047116,31047148,31047389,31047525,31047817,31048219,31049995,31050281,31050494,31050852,31051135,31051262,31051509,31051927,31052776,31054682', 'assoc_port': '31045064:31046982,31045066:31047053,31045067:31047017,31045068:31047085,31045069:31047116,31045070:31047148,31047221:31047389,31047411:31047525,31047764:31047817,31048154:31048219,31049896:31049995,31050101:31050281,31050349:31050494,31050595:31050852,31050889:31051135,31051161:31051262,31051369:31051509,31051831:31051927,31052637:31052776,31054570:31054682', 'assoc_mat': '31045064:pehd:4230:31046982,31045066:pehd:4230:31047053,31045067:pehd:4230:31047017,31045068:pehd:4230:31047085,31045069:pehd:4230:31047116,31045070:pehd:4230:31047148,31047221:pehd:4230:31047389,31047411:pehd:4230:31047525,31047764:pehd:4230:31047817,31048154:pehd:4230:31048219,31049896:pehd:4230:31049995,31050101:pehd:4230:31050281,31050349:pehd:4230:31050494,31050595:pehd:4230:31050852,31050889:pehd:4230:31051135,31051161:pehd:4230:31051262,31051369:pehd:4230:31051509,31051831:pehd:4230:31051927,31052637:pehd:4230:31052776,31054570:pehd:4230:31054682'}, {'unwanted_material': 'pet_clair', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.022424308055036903, 'nb_photo': 1176, 'list_port_cont': '31046946,31046980,31047014,31047048,31047083,31047119,31047161,31047379,31047523,31047702,31047813,31048224,31048260,31048410,31048831,31048871,31049784,31049998,31050282,31050485,31050856,31051128,31051256,31051507,31051709,31051928,31051967,31052238,31052556,31052772,31052981,31053208,31053496,31053689,31053876,31054164,31054458,31054683,31054717', 'assoc_port': '31045064:31046980,31045065:31046946,31045066:31047048,31045067:31047014,31045068:31047083,31045069:31047119,31045070:31047161,31047221:31047379,31047411:31047523,31047563:31047702,31047764:31047813,31048153:31048260,31048154:31048224,31048361:31048410,31048780:31048831,31048781:31048871,31049690:31049784,31049896:31049998,31050101:31050282,31050349:31050485,31050595:31050856,31050889:31051128,31051161:31051256,31051369:31051507,31051619:31051709,31051831:31051928,31051832:31051967,31052141:31052238,31052386:31052556,31052637:31052772,31052881:31052981,31053093:31053208,31053354:31053496,31053637:31053689,31053845:31053876,31054024:31054164,31054317:31054458,31054570:31054683,31054571:31054717', 'assoc_mat': '31045064:pet_clair:4230:31046980,31045065:pet_clair:4230:31046946,31045066:pet_clair:4230:31047048,31045067:pet_clair:4230:31047014,31045068:pet_clair:4230:31047083,31045069:pet_clair:4230:31047119,31045070:pet_clair:4230:31047161,31047221:pet_clair:4230:31047379,31047411:pet_clair:4230:31047523,31047563:pet_clair:4230:31047702,31047764:pet_clair:4230:31047813,31048153:pet_clair:4230:31048260,31048154:pet_clair:4230:31048224,31048361:pet_clair:4230:31048410,31048780:pet_clair:4230:31048831,31048781:pet_clair:4230:31048871,31049690:pet_clair:4230:31049784,31049896:pet_clair:4230:31049998,31050101:pet_clair:4230:31050282,31050349:pet_clair:4230:31050485,31050595:pet_clair:4230:31050856,31050889:pet_clair:4230:31051128,31051161:pet_clair:4230:31051256,31051369:pet_clair:4230:31051507,31051619:pet_clair:4230:31051709,31051831:pet_clair:4230:31051928,31051832:pet_clair:4230:31051967,31052141:pet_clair:4230:31052238,31052386:pet_clair:4230:31052556,31052637:pet_clair:4230:31052772,31052881:pet_clair:4230:31052981,3'}, {'unwanted_material': 'pet_fonce', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.001394228216694465, 'nb_photo': 33, 'list_port_cont': '31046934,31046979,31047156,31048248,31050277,31050496,31050857,31051138,31051258,31051934,31052771,31053489,31053702,31054450,31054684', 'assoc_port': '31045064:31046979,31045065:31046934,31045070:31047156,31048153:31048248,31050101:31050277,31050349:31050496,31050595:31050857,31050889:31051138,31051161:31051258,31051831:31051934,31052637:31052771,31053354:31053489,31053637:31053702,31054317:31054450,31054570:31054684', 'assoc_mat': '31045064:pet_fonce:4230:31046979,31045065:pet_fonce:4230:31046934,31045070:pet_fonce:4230:31047156,31048153:pet_fonce:4230:31048248,31050101:pet_fonce:4230:31050277,31050349:pet_fonce:4230:31050496,31050595:pet_fonce:4230:31050857,31050889:pet_fonce:4230:31051138,31051161:pet_fonce:4230:31051258,31051831:pet_fonce:4230:31051934,31052637:pet_fonce:4230:31052771,31053354:pet_fonce:4230:31053489,31053637:pet_fonce:4230:31053702,31054317:pet_fonce:4230:31054450,31054570:pet_fonce:4230:31054684'}), 'main_stat': {'nb_photos': 79}, 'velours_link': {'incineration': 'https://www.fotonower.com/velours/31048697,31048698,31048699,31048700,31048701,31048702,31048703?tags=autre,carton,metal,papier,pehd,pet_clair,pet_fonce'}}, 'hostname': (), 'impurety_average_per_hashtag': [(('incineration', '2026-08', 0.7813139312284906),)]} TODO : Insert select and so on SELECT id, name, misc_info, datou_id_for_right FROM MTRPhoto.dashboard_places WHERE name="SCCU_cam7"; SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4850 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4850 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4850 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4850 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! {"input_values":[]} SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4234 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4234 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4234 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4234 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11415 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11419 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11419 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11416 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11416 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11417 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11417 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11422 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11416 have datatype=10 whereas input 2 of step 11418 have datatype=6 We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 2 of step 11419 doesn't seem to be define in the database( WARNING : output 1 of step 11415 have datatype=7 whereas input 2 of step 11419 have datatype=None WARNING : type of output 3 of step 11419 doesn't seem to be define in the database( WARNING : type of input 1 of step 11416 doesn't seem to be define in the database( WARNING : type of output 1 of step 11416 doesn't seem to be define in the database( WARNING : type of input 3 of step 11417 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11416 have datatype=10 whereas input 0 of step 11420 have datatype=18 WARNING : type of input 5 of step 11418 doesn't seem to be define in the database( WARNING : output 0 of step 11420 have datatype=11 whereas input 5 of step 11418 have datatype=None WARNING : type of input 2 of step 11416 doesn't seem to be define in the database( WARNING : output 0 of step 11421 have datatype=5 whereas input 2 of step 11416 have datatype=None WARNING : output 0 of step 11418 have datatype=10 whereas input 0 of step 11422 have datatype=18 DataTypes for each output/input checked ! {"input_values":[]} Unexpected error treated as WARNING for now expected given param in final step {'name_pipeline': 'aggregate_carac_ratio', 'hashtag_type': 4230, 'hashtag_proportion': 'papier,carton,metal,pet_clair,autre,pehd,pet_fonce', 'hashtag_parmi': 'refus', 'hashtag_weights': {'autre': 3.0, 'barquette_avec_film': 3.0, 'carton': 3.0, 'metal': 3.0, 'papier': 3.0, 'pehd': 3.0, 'pet_fonce': 3.0, 'pet_clair': 1.0, 'flou': 1.0, 'mal_croppe': 1.0}, 'option_sccu': 1} Found hashtag_parmi in final step, will be used and useful if different from matiere_majoritaire in classifier {'number_of_analysed_photos': ((79,),), 'unwanted_material_monthly_percentage': ((0.7813139312284906,),), 'material_repartition': (('incineration', 79),), 'material_dict': {'incineration': 79}, 'coverage_data': (), 'impurety_average_data': ((datetime.date(2026, 8, 14), 0.7991885963154561, 3), (datetime.date(2026, 8, 15), 0.8029459091935757, 1), (datetime.date(2026, 8, 16), 0.8241171846386712, 1), (datetime.date(2026, 8, 22), 0.7391521885542333, 1), (datetime.date(2026, 8, 23), 0.8046610167747885, 1)), 'impurety_average_data_per_hashtag': {'incineration': ((datetime.date(2026, 8, 14), 0.7991885963154561, 3), (datetime.date(2026, 8, 15), 0.8029459091935757, 1), (datetime.date(2026, 8, 16), 0.8241171846386712, 1), (datetime.date(2026, 8, 22), 0.7391521885542333, 1), (datetime.date(2026, 8, 23), 0.8046610167747885, 1))}, 'quality_array': [['-7.834164452777389', '14082026'], ['-8.15396188000904', '15082026'], ['-8.00489469434096', '16082026'], ['-7.679896178077161', '22082026'], ['-7.677024066795651', '23082026']], 'number_of_batch': ((39,),), 'datou_id_sts': 4850, 'map_hashtag_number_mat': {'hash_to_mat_nb': ({'unwanted_material': 'autre', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.013306850396293726, 'nb_photo': 706, 'list_port_cont': '31046935,31046972,31047019,31047041,31047082,31047115,31047160,31047382,31047518,31047685,31047820,31048209,31048246,31048404,31048823,31048866,31049779,31049986,31050276,31050490,31050855,31051123,31051250,31051499,31051724,31051921,31051962,31052240,31052563,31052773,31052977,31053205,31053488,31053688,31053861,31054163,31054448,31054686,31054715', 'assoc_port': '31045064:31046972,31045065:31046935,31045066:31047041,31045067:31047019,31045068:31047082,31045069:31047115,31045070:31047160,31047221:31047382,31047411:31047518,31047563:31047685,31047764:31047820,31048153:31048246,31048154:31048209,31048361:31048404,31048780:31048823,31048781:31048866,31049690:31049779,31049896:31049986,31050101:31050276,31050349:31050490,31050595:31050855,31050889:31051123,31051161:31051250,31051369:31051499,31051619:31051724,31051831:31051921,31051832:31051962,31052141:31052240,31052386:31052563,31052637:31052773,31052881:31052977,31053093:31053205,31053354:31053488,31053637:31053688,31053845:31053861,31054024:31054163,31054317:31054448,31054570:31054686,31054571:31054715', 'assoc_mat': '31045064:autre:4230:31046972,31045065:autre:4230:31046935,31045066:autre:4230:31047041,31045067:autre:4230:31047019,31045068:autre:4230:31047082,31045069:autre:4230:31047115,31045070:autre:4230:31047160,31047221:autre:4230:31047382,31047411:autre:4230:31047518,31047563:autre:4230:31047685,31047764:autre:4230:31047820,31048153:autre:4230:31048246,31048154:autre:4230:31048209,31048361:autre:4230:31048404,31048780:autre:4230:31048823,31048781:autre:4230:31048866,31049690:autre:4230:31049779,31049896:autre:4230:31049986,31050101:autre:4230:31050276,31050349:autre:4230:31050490,31050595:autre:4230:31050855,31050889:autre:4230:31051123,31051161:autre:4230:31051250,31051369:autre:4230:31051499,31051619:autre:4230:31051724,31051831:autre:4230:31051921,31051832:autre:4230:31051962,31052141:autre:4230:31052240,31052386:autre:4230:31052563,31052637:autre:4230:31052773,31052881:autre:4230:31052977,31053093:autre:4230:31053205,31053354:autre:4230:31053488,31053637:autre:4230:31053688,31053845:autre:4230:31053861,31054024:'}, {'unwanted_material': 'carton', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.03057417954345101, 'nb_photo': 2910, 'list_port_cont': '31046945,31046981,31047018,31047054,31047088,31047124,31047163,31047386,31047522,31047700,31047821,31048220,31048258,31048405,31048832,31048870,31049781,31049994,31050283,31050492,31050847,31051131,31051263,31051500,31051725,31051929,31051963,31052235,31052559,31052769,31052986,31053209,31053490,31053698,31053875,31054166,31054459,31054677,31054720', 'assoc_port': '31045064:31046981,31045065:31046945,31045066:31047054,31045067:31047018,31045068:31047088,31045069:31047124,31045070:31047163,31047221:31047386,31047411:31047522,31047563:31047700,31047764:31047821,31048153:31048258,31048154:31048220,31048361:31048405,31048780:31048832,31048781:31048870,31049690:31049781,31049896:31049994,31050101:31050283,31050349:31050492,31050595:31050847,31050889:31051131,31051161:31051263,31051369:31051500,31051619:31051725,31051831:31051929,31051832:31051963,31052141:31052235,31052386:31052559,31052637:31052769,31052881:31052986,31053093:31053209,31053354:31053490,31053637:31053698,31053845:31053875,31054024:31054166,31054317:31054459,31054570:31054677,31054571:31054720', 'assoc_mat': '31045064:carton:4230:31046981,31045065:carton:4230:31046945,31045066:carton:4230:31047054,31045067:carton:4230:31047018,31045068:carton:4230:31047088,31045069:carton:4230:31047124,31045070:carton:4230:31047163,31047221:carton:4230:31047386,31047411:carton:4230:31047522,31047563:carton:4230:31047700,31047764:carton:4230:31047821,31048153:carton:4230:31048258,31048154:carton:4230:31048220,31048361:carton:4230:31048405,31048780:carton:4230:31048832,31048781:carton:4230:31048870,31049690:carton:4230:31049781,31049896:carton:4230:31049994,31050101:carton:4230:31050283,31050349:carton:4230:31050492,31050595:carton:4230:31050847,31050889:carton:4230:31051131,31051161:carton:4230:31051263,31051369:carton:4230:31051500,31051619:carton:4230:31051725,31051831:carton:4230:31051929,31051832:carton:4230:31051963,31052141:carton:4230:31052235,31052386:carton:4230:31052559,31052637:carton:4230:31052769,31052881:carton:4230:31052986,31053093:carton:4230:31053209,31053354:carton:4230:31053490,31053637:carton:4230:31053698,3105'}, {'unwanted_material': 'metal', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.0007520898244626382, 'nb_photo': 47, 'list_port_cont': '31046932,31046969,31047004,31047079,31047122,31047381,31048222,31048252,31050272,31050488,31050858,31051130,31051247,31051511,31051713,31051964,31052242,31052554,31052777,31052972,31053193,31054167,31054453', 'assoc_port': '31045064:31046969,31045065:31046932,31045067:31047004,31045068:31047079,31045069:31047122,31047221:31047381,31048153:31048252,31048154:31048222,31050101:31050272,31050349:31050488,31050595:31050858,31050889:31051130,31051161:31051247,31051369:31051511,31051619:31051713,31051832:31051964,31052141:31052242,31052386:31052554,31052637:31052777,31052881:31052972,31053093:31053193,31054024:31054167,31054317:31054453', 'assoc_mat': '31045064:metal:4230:31046969,31045065:metal:4230:31046932,31045067:metal:4230:31047004,31045068:metal:4230:31047079,31045069:metal:4230:31047122,31047221:metal:4230:31047381,31048153:metal:4230:31048252,31048154:metal:4230:31048222,31050101:metal:4230:31050272,31050349:metal:4230:31050488,31050595:metal:4230:31050858,31050889:metal:4230:31051130,31051161:metal:4230:31051247,31051369:metal:4230:31051511,31051619:metal:4230:31051713,31051832:metal:4230:31051964,31052141:metal:4230:31052242,31052386:metal:4230:31052554,31052637:metal:4230:31052777,31052881:metal:4230:31052972,31053093:metal:4230:31053193,31054024:metal:4230:31054167,31054317:metal:4230:31054453'}, {'unwanted_material': 'papier', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.1646133395240726, 'nb_photo': 13413, 'list_port_cont': '31046943,31046978,31047012,31047050,31047091,31047126,31047158,31047385,31047526,31047699,31047819,31048213,31048253,31048411,31048834,31048872,31049788,31049997,31050274,31050493,31050851,31051134,31051259,31051512,31051722,31051930,31051971,31052241,31052555,31052770,31052978,31053199,31053494,31053700,31053877,31054159,31054456,31054687,31054722', 'assoc_port': '31045064:31046978,31045065:31046943,31045066:31047050,31045067:31047012,31045068:31047091,31045069:31047126,31045070:31047158,31047221:31047385,31047411:31047526,31047563:31047699,31047764:31047819,31048153:31048253,31048154:31048213,31048361:31048411,31048780:31048834,31048781:31048872,31049690:31049788,31049896:31049997,31050101:31050274,31050349:31050493,31050595:31050851,31050889:31051134,31051161:31051259,31051369:31051512,31051619:31051722,31051831:31051930,31051832:31051971,31052141:31052241,31052386:31052555,31052637:31052770,31052881:31052978,31053093:31053199,31053354:31053494,31053637:31053700,31053845:31053877,31054024:31054159,31054317:31054456,31054570:31054687,31054571:31054722', 'assoc_mat': '31045064:papier:4230:31046978,31045065:papier:4230:31046943,31045066:papier:4230:31047050,31045067:papier:4230:31047012,31045068:papier:4230:31047091,31045069:papier:4230:31047126,31045070:papier:4230:31047158,31047221:papier:4230:31047385,31047411:papier:4230:31047526,31047563:papier:4230:31047699,31047764:papier:4230:31047819,31048153:papier:4230:31048253,31048154:papier:4230:31048213,31048361:papier:4230:31048411,31048780:papier:4230:31048834,31048781:papier:4230:31048872,31049690:papier:4230:31049788,31049896:papier:4230:31049997,31050101:papier:4230:31050274,31050349:papier:4230:31050493,31050595:papier:4230:31050851,31050889:papier:4230:31051134,31051161:papier:4230:31051259,31051369:papier:4230:31051512,31051619:papier:4230:31051722,31051831:papier:4230:31051930,31051832:papier:4230:31051971,31052141:papier:4230:31052241,31052386:papier:4230:31052555,31052637:papier:4230:31052770,31052881:papier:4230:31052978,31053093:papier:4230:31053199,31053354:papier:4230:31053494,31053637:papier:4230:31053700,3105'}, {'unwanted_material': 'pehd', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.0022768064251044895, 'nb_photo': 50, 'list_port_cont': '31046982,31047017,31047053,31047085,31047116,31047148,31047389,31047525,31047817,31048219,31049995,31050281,31050494,31050852,31051135,31051262,31051509,31051927,31052776,31054682', 'assoc_port': '31045064:31046982,31045066:31047053,31045067:31047017,31045068:31047085,31045069:31047116,31045070:31047148,31047221:31047389,31047411:31047525,31047764:31047817,31048154:31048219,31049896:31049995,31050101:31050281,31050349:31050494,31050595:31050852,31050889:31051135,31051161:31051262,31051369:31051509,31051831:31051927,31052637:31052776,31054570:31054682', 'assoc_mat': '31045064:pehd:4230:31046982,31045066:pehd:4230:31047053,31045067:pehd:4230:31047017,31045068:pehd:4230:31047085,31045069:pehd:4230:31047116,31045070:pehd:4230:31047148,31047221:pehd:4230:31047389,31047411:pehd:4230:31047525,31047764:pehd:4230:31047817,31048154:pehd:4230:31048219,31049896:pehd:4230:31049995,31050101:pehd:4230:31050281,31050349:pehd:4230:31050494,31050595:pehd:4230:31050852,31050889:pehd:4230:31051135,31051161:pehd:4230:31051262,31051369:pehd:4230:31051509,31051831:pehd:4230:31051927,31052637:pehd:4230:31052776,31054570:pehd:4230:31054682'}, {'unwanted_material': 'pet_clair', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.022424308055036903, 'nb_photo': 1176, 'list_port_cont': '31046946,31046980,31047014,31047048,31047083,31047119,31047161,31047379,31047523,31047702,31047813,31048224,31048260,31048410,31048831,31048871,31049784,31049998,31050282,31050485,31050856,31051128,31051256,31051507,31051709,31051928,31051967,31052238,31052556,31052772,31052981,31053208,31053496,31053689,31053876,31054164,31054458,31054683,31054717', 'assoc_port': '31045064:31046980,31045065:31046946,31045066:31047048,31045067:31047014,31045068:31047083,31045069:31047119,31045070:31047161,31047221:31047379,31047411:31047523,31047563:31047702,31047764:31047813,31048153:31048260,31048154:31048224,31048361:31048410,31048780:31048831,31048781:31048871,31049690:31049784,31049896:31049998,31050101:31050282,31050349:31050485,31050595:31050856,31050889:31051128,31051161:31051256,31051369:31051507,31051619:31051709,31051831:31051928,31051832:31051967,31052141:31052238,31052386:31052556,31052637:31052772,31052881:31052981,31053093:31053208,31053354:31053496,31053637:31053689,31053845:31053876,31054024:31054164,31054317:31054458,31054570:31054683,31054571:31054717', 'assoc_mat': '31045064:pet_clair:4230:31046980,31045065:pet_clair:4230:31046946,31045066:pet_clair:4230:31047048,31045067:pet_clair:4230:31047014,31045068:pet_clair:4230:31047083,31045069:pet_clair:4230:31047119,31045070:pet_clair:4230:31047161,31047221:pet_clair:4230:31047379,31047411:pet_clair:4230:31047523,31047563:pet_clair:4230:31047702,31047764:pet_clair:4230:31047813,31048153:pet_clair:4230:31048260,31048154:pet_clair:4230:31048224,31048361:pet_clair:4230:31048410,31048780:pet_clair:4230:31048831,31048781:pet_clair:4230:31048871,31049690:pet_clair:4230:31049784,31049896:pet_clair:4230:31049998,31050101:pet_clair:4230:31050282,31050349:pet_clair:4230:31050485,31050595:pet_clair:4230:31050856,31050889:pet_clair:4230:31051128,31051161:pet_clair:4230:31051256,31051369:pet_clair:4230:31051507,31051619:pet_clair:4230:31051709,31051831:pet_clair:4230:31051928,31051832:pet_clair:4230:31051967,31052141:pet_clair:4230:31052238,31052386:pet_clair:4230:31052556,31052637:pet_clair:4230:31052772,31052881:pet_clair:4230:31052981,3'}, {'unwanted_material': 'pet_fonce', 'main_material': 'incineration', 'pht_type': 4230, 'ratio': 0.001394228216694465, 'nb_photo': 33, 'list_port_cont': '31046934,31046979,31047156,31048248,31050277,31050496,31050857,31051138,31051258,31051934,31052771,31053489,31053702,31054450,31054684', 'assoc_port': '31045064:31046979,31045065:31046934,31045070:31047156,31048153:31048248,31050101:31050277,31050349:31050496,31050595:31050857,31050889:31051138,31051161:31051258,31051831:31051934,31052637:31052771,31053354:31053489,31053637:31053702,31054317:31054450,31054570:31054684', 'assoc_mat': '31045064:pet_fonce:4230:31046979,31045065:pet_fonce:4230:31046934,31045070:pet_fonce:4230:31047156,31048153:pet_fonce:4230:31048248,31050101:pet_fonce:4230:31050277,31050349:pet_fonce:4230:31050496,31050595:pet_fonce:4230:31050857,31050889:pet_fonce:4230:31051138,31051161:pet_fonce:4230:31051258,31051831:pet_fonce:4230:31051934,31052637:pet_fonce:4230:31052771,31053354:pet_fonce:4230:31053489,31053637:pet_fonce:4230:31053702,31054317:pet_fonce:4230:31054450,31054570:pet_fonce:4230:31054684'}), 'main_stat': {'nb_photos': 79}, 'velours_link': {'incineration': 'https://www.fotonower.com/velours/31048697,31048698,31048699,31048700,31048701,31048702,31048703?tags=autre,carton,metal,papier,pehd,pet_clair,pet_fonce'}}, 'hostname': (), 'impurety_average_per_hashtag': [(('incineration', '2026-08', 0.7813139312284906),)]} filepath : /data_4/data_log/job/memo/SCCU_cam7/sla_mensuel_SCCU_cam7_mois_08_annee_2026.pdf Before plot_photos_and_unwanted_material_summary # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? Before organize_and_plot_unwanted_material_stats {'incineration': {'autre': ['autre', '1.33%', 706], 'carton': ['carton', '3.06%', 2910], 'metal': ['metal', '0.08%', 47], 'papier': ['papier', '16.46%', 13413], 'pehd': ['pehd', '0.23%', 50], 'pet_clair': ['pet_clair', '2.24%', 1176], 'pet_fonce': ['pet_fonce', '0.14%', 33]}} before organize_and_plot_impurety_average_data before organize_and_plot_quality_photo_data finish generating filepath : /data_4/data_log/job/memo/SCCU_cam7/sla_mensuel_SCCU_cam7_mois_08_annee_2026.pdf le fichier se trouve ici : /data_4/data_log/job/memo/SCCU_cam7 2.47user 2.94system 0:04.97elapsed 109%CPU (0avgtext+0avgdata 191360maxresident)k 48inputs+208outputs (0major+53983minor)pagefaults 0swaps