Skip to content

Commit

Permalink
[Python] Remove hack to bypass ClearProxiedObjects() in tutorials
Browse files Browse the repository at this point in the history
Since we're not calling `ClearProxiedObjects()` anymore anyway, we don't
need the hack to avoid it.
  • Loading branch information
guitargeek committed Jan 7, 2025
1 parent 433ca8c commit 0536b4f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions tutorials/roofit/rf615_simulation_based_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,3 @@ def learned_likelihood_ratio(x, mu):
del nllr_learned
del nll_gauss
del workspace

import sys

# Hack to bypass ClearProxiedObjects()
del sys.modules["libROOTPythonizations"]
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,3 @@ def learned_likelihood_ratio(*args):
minimizer.minimize("Minuit2")
result = minimizer.save()
result.Print()

import sys

# Hack to bypass ClearProxiedObjects()
del sys.modules["libROOTPythonizations"]
5 changes: 0 additions & 5 deletions tutorials/roofit/rf618_mixture_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,3 @@ def likelihood_ratio(llr: np.ndarray, mu: np.ndarray) -> np.ndarray:
del n_pred
del llh
del nll_ratio

import sys

# Hack to bypass ClearProxiedObjects()
del sys.modules["libROOTPythonizations"]

0 comments on commit 0536b4f

Please sign in to comment.