I have made a few modifications to your code @CosmoMatt to address my own review comments, let me know what you think, and more importantly, you should see if the MW binning works correctly the way I implemented it.
Note that I have updated the massmappy imports to be compatible with my own version available here: https://github.com/EiffL/massmappy
I have made a few modifications to your code @CosmoMatt to address my own review comments, let me know what you think, and more importantly, you should see if the MW binning works correctly the way I implemented it. Note that I have updated the massmappy imports to be compatible with my own version available here: https://github.com/EiffL/massmappy