With the registry api, this can be achieved by filling the following template
@Profile.register(key=["diptest_val", "p_value"], description=["test for unimodality", "p-value for diptest"])
def diptest(histogram):
# your magic here
return coeff, pval
Due to requirement of the package, it could be made optional and picked up when the package is installed in the environment.
In setup.py it could be registered as ‘extras’, allowing you to do pip install popmon[diptest]
The diptest - test for unimodality - could be included as profile (https://pypi.org/project/diptest/)
With the registry api, this can be achieved by filling the following template
Due to requirement of the package, it could be made optional and picked up when the package is installed in the environment. In setup.py it could be registered as ‘extras’, allowing you to do pip install popmon[diptest]