Skip to content

[modules/enercoop] measures are now in a dictionnary

Ludovic Rousseau requested to merge Ludovic/woob:enercoop into master

The list of measures MAY be stored in the key 'mixed_cadrans' or 'puissance_max' of a dictionnary.

yvalues is something like: {'mixed_cadrans': [0.075, 0.074, 0.075, 0.074, 0.065, 0.043, 0.048, 0.046, 0.045, 0.044, 0.044, 0.044, 0.043, 0.043, 0.042, 0.042, 0.042, 0.016, 0.016, 0.016, 0.015, 0.016, 0.016, 0.016, 0.024, 0.047, 0.046, 0.044, 0.044, 0.044, 0.043, 0.032, 0.061, 0.041, 0.079, 0.103, 0.1, 0.115, 0.143, 0.146, 0.145, 0.142, 0.138, 0.141, 0.131, 0.103, 0.07, 0.07, 0.047, 0.038, 0.027, 0.047, 0.063, 0.104, 0.099, 0.098, 0.098, 0.096, 0.091, 0.067, 0.068, 0.067, 0.067, 0.066, 0.068, 0.086, 0.098, 0.097, 0.093, 0.097, 0.101, 0.131, 0.135, 0.11, 0.081, 0.081, 0.196, 0.075, 0.086, 0.106, 0.157, 0.162, 0.156, 0.161, 0.161, 0.161, 0.127, 0.125, 0.132, 0.126, 0.114, 0.128, 0.142, 0.139, 0.136, 0.139]}

For power measures we have another dictionnary: {'puissance_max': [4.86, 3.57, 4.64, 4.76, 0, 0, 0, 0, 0, 0, 0, 0]}

Note that is NOT the case for hourly measures. So we need to test if we need to get the dictionnary element or not.

Merge request reports