Skip to content

Commit

Permalink
get instead of pop (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
hammannr authored Oct 11, 2024
1 parent a869df7 commit f38079b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alea/models/blueice_extended_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def get_expectation_values(self, per_likelihood_term=False, **kwargs) -> dict:
):
ret[ll_name] = {}
ll_index = self.likelihood_names.index(ll_name)
lt = generate_values.pop(lt_name, None)
lt = generate_values.get(lt_name, None)
# compute the mus
self.data_generators[ll_index].compute_pdfs_and_mus(**generate_values, livetime_days=lt)
mus = self.data_generators[ll_index].mus
Expand Down

0 comments on commit f38079b

Please sign in to comment.