Closed ashleyrback closed 9 years ago
@jwaterfield here are the bug fixes, updates and some new features for the limit setting code. I haven't run the unittests or added any new ones yet or checked the docs. I'll do that now and push any changes.
@ashleyrback cheers reviewing now...
Note: unittests currently give
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
This will be fixed in the next commit that is pushed
@jwaterfield pushed some updates, hopefully this responds to all comments. Let me know if there is anything else.
Merging
Includes:
Bug fixes/updates:
limit_config
class. Limit setting code was returning scaled counts at limit rather thanspectra.sum()
counts. Changes_chi_squareds
to have 3 columns: chi squared, current count and sum. Changed other class methods accordingly.zero_nu_limit
script:New:
SystAnalyser
class tolimit_setting
. A class for analysing the effect of systematics. Creates instances viaLimitSetting.configure_background
.utilities
module and timing utilityplot_chi_squared
module withchi_squared_vs_signal
method. More to follow.dump_ndarray
andload_ndarray
functions tostore
module. These allow you to dump/load any class instance that is mainly numpy arrays, e.g.SystAnalyser
class.