Skip to content

Commit

Permalink
Defunctionalize apply_efficiency, apply efficiency when `efficiency…
Browse files Browse the repository at this point in the history
…_name` is specified (#183)

* Defunctionalize `apply_efficiency`

* debug
  • Loading branch information
dachengx authored Jul 31, 2024
1 parent 6432d0f commit 0af5858
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions alea/examples/configs/unbinned_wimp_statistical_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ likelihood_config:
named_parameters:
- wimp_mass
template_filename: wimp{wimp_mass:d}gev_template.ii.h5
apply_efficiency: True
efficiency_name: signal_efficiency

# SR1
Expand Down Expand Up @@ -134,5 +133,4 @@ likelihood_config:
named_parameters:
- wimp_mass
template_filename: wimp{wimp_mass:d}gev_template.ii.h5
apply_efficiency: True
efficiency_name: signal_efficiency
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ likelihood_config:
- wimp_mass
- signal_efficiency
template_filename: wimp50gev_template.ii.h5
apply_efficiency: True
efficiency_name: signal_efficiency

# SR3, 1D inference on cS2 space
Expand Down Expand Up @@ -127,5 +126,4 @@ likelihood_config:
- signal_efficiency
template_filename: wimp50gev_template.ii.h5
spectrum_name: test_cs1_spectrum.json
apply_efficiency: True
efficiency_name: signal_efficiency
2 changes: 1 addition & 1 deletion alea/models/blueice_extended_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _build_ll_from_config(
)

# set efficiency parameters
if source.get("apply_efficiency", False):
if source.get("efficiency_name", None):
self._set_efficiency(source, ll)

# set shape parameters
Expand Down

0 comments on commit 0af5858

Please sign in to comment.