From 11cb1a65a0df8ead10901bc47a6d6af421cadda9 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Tue, 10 Nov 2026 17:05:18 +0000 Subject: [PATCH] Remove JAX skip guard from cluster-scale tutorial --- .../tutorial_5_cluster_scale.ipynb | 11 ----------- .../tutorial_5_cluster_scale.py | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb b/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb index a0fa9ea..1643342 100644 --- a/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb +++ b/notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb @@ -116,17 +116,6 @@ "cell_type": "code", "metadata": {}, "source": [ - "\n", - "import importlib.util\n", - "import sys\n", - "\n", - "if importlib.util.find_spec(\"jax\") is None:\n", - " print(\n", - " \"Skipping this tutorial: it requires the `jax` package (used to \"\n", - " \"accelerate the multi-plane point-source solves), which is not \"\n", - " \"installed (install with `pip install autolens[optional]`).\"\n", - " )\n", - " sys.exit(0)\n", "\n", "from autolens import jax_wrapper # Sets JAX environment before other imports\n", "\n", diff --git a/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py b/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py index a228718..79ad4dc 100644 --- a/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py +++ b/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py @@ -69,17 +69,6 @@ redshift uncertainties must be considered when interpreting a real cluster model. """ -import importlib.util -import sys - -if importlib.util.find_spec("jax") is None: - print( - "Skipping this tutorial: it requires the `jax` package (used to " - "accelerate the multi-plane point-source solves), which is not " - "installed (install with `pip install autolens[optional]`)." - ) - sys.exit(0) - from autolens import jax_wrapper # Sets JAX environment before other imports # from autolens import setup_notebook; setup_notebook()