File: SurveySimulator/python/ossssim/distributions.py
Function: power_knee_divot
There are a couple of problems when applying single slope power law input parameters:
- The first simple error handling does not work if h_break=None (would should be a valid input for a single slope power law, given the function description)
- The value for h_break is changed on line 351 in distributions.py, so the condition on line 257 is always true. However, if h_break is set to H_max, then there is no need to generate the "faint side" of the distribution.
- If this is corrected, then the next step to merge the "two sides" of the distribution produces an error since fp_f is empty.
The attached file shows how to fix these issues for a single slope power law input.
distributions.txt