From 9d27fd191838a9ad706e3cc0a0ea128de97cd09c Mon Sep 17 00:00:00 2001 From: emilyhunt Date: Fri, 17 Oct 2025 16:28:09 +0200 Subject: [PATCH] Add disk space usage warnings --- examples/figure_9_and_10.ipynb | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/examples/figure_9_and_10.ipynb b/examples/figure_9_and_10.ipynb index aecfb76..8797778 100644 --- a/examples/figure_9_and_10.ipynb +++ b/examples/figure_9_and_10.ipynb @@ -7,7 +7,9 @@ "source": [ "# Reproducing figures 9 & 10 from the paper\n", "\n", - "In the paper, we show that proper motion can have a major impact on the detectability of clusters. This notebook presents a quick way to reproduce these figures as an example. By default, the figures use a lower resolution - this makes them a lot quicker to generate." + "In the paper, we show that proper motion can have a major impact on the detectability of clusters. This notebook presents a quick way to reproduce these figures as an example. By default, the figures use a lower resolution - this makes them a lot quicker to generate.\n", + "\n", + "`⚠️ This notebook requires 8 GB+ of disk space to run, as it will need to download the Zucker+25 dust map.`" ] }, { @@ -51,7 +53,9 @@ "source": [ "## Make a query grid and grab dust\n", "\n", - "To start with, we need to look up extinction on a grid in the Milky Way." + "To start with, we need to look up extinction on a grid in the Milky Way.\n", + "\n", + "`⚠️ This will download the Zucker+25 dust map, which takes 8 GB+ of disk space.`" ] }, { @@ -78,7 +82,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "c6af9c40", "metadata": {}, "outputs": [ @@ -111,6 +115,10 @@ " \"looking up extinction values for this grid.\"\n", " )\n", " bayestar = BayestarWebQuery()\n", + " print(\"--------------------------------\")\n", + " print(\"Downloading Zucker+25 dust map.\")\n", + " print(\"WARNING: this will take at least 8 GB of disk space!\")\n", + " print(\"--------------------------------\")\n", " dustmaps.decaps.fetch(mean_only=True)\n", " decaps = DECaPSQueryLite(mean_only=True)\n", "\n", @@ -346,7 +354,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "655d697b", "metadata": {}, "outputs": [ @@ -369,7 +377,7 @@ " for name in orbit_names\n", "]\n", "\n", - "# Calcualte detection probability of each orbit option\n", + "# Calculate detection probability of each orbit option\n", "good_points = points['distance'] >= 500\n", "points_subset = points.loc[good_points]\n", "for orbit, name in zip(orbits, orbit_names):\n", -- 2.51.2