glass-dev / glass

Generator for Large Scale Structure
https://glass.readthedocs.io
MIT License
31 stars 7 forks source link

Fix and improve non-negative partition() #144

Closed ntessore closed 8 months ago

ntessore commented 8 months ago

There is a bug in the partition_nnls() where only a fixed constant is set from the solution.

In addition, the partition can be improved by adding a further constraint that the sum of the partition equals the integral of the input.