Skip to content

Commit

Permalink
Fix generation of giese_lisa_fig2 if the Giese code is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
AgenttiX committed Dec 4, 2024
1 parent 62057d7 commit 9557528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/giese_lisa_fig2.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
logger.info("Giese could not be imported.")
kappaNuMuModel: tp.Optional[callable] = None


def get_kappa(bubble: Bubble) -> float:
if (not bubble.solved) or bubble.no_solution_found or bubble.solver_failed or bubble.numerical_error:
return np.nan
Expand Down Expand Up @@ -100,6 +99,8 @@ def create_figure(
for i, model in enumerate(models):
ls = "--" if i in [2, 3] else "-"
if giese:
if kappaNuMuModel is None:
continue
kappas = kappas_giese(model=model, v_walls=v_walls, alpha_ns=alpha_ns, theta_bar=theta_bar)
else:
bubbles, kappas = create_bubbles(
Expand Down

0 comments on commit 9557528

Please sign in to comment.