# Related Codes - [feature/CCAResponse](https://github.com/project8/mermithid/tree/feature/CCAResponse) branch > [`mermithid/processors/DataGenerator4D/EnergyError/EnergyError.py`](https://github.com/project8/mermithid/blob/b43773909b280a5b46dbe3f63a628fdc34e29093/mermithid/processors/DataGenerator4D/EnergyError/EnergyError.py) # Problem - The DeltaE grid is assumed to be a probability distribution function along its zeroth axis (=Delta E). - In the current code, the sum over the zeroth axis is assumed to be 1. - See [EnergyError.py#L131](https://github.com/project8/mermithid/blob/b43773909b280a5b46dbe3f63a628fdc34e29093/mermithid/processors/DataGenerator4D/EnergyError/EnergyError.py#L131) - However, if it is defined to be the probability **density** function, the sum of (DeltaE grid * DeltaE width) over the zeroth axis has to be 1. - Discuss with the collaborators about which way makes more sense (or is less confusing), and update the code.
Related Codes
mermithid/processors/DataGenerator4D/EnergyError/EnergyError.pyProblem