From 65913aa41d1da657ad40903a70b401f62839807b Mon Sep 17 00:00:00 2001 From: m-aguena Date: Wed, 17 Jul 2024 14:32:22 +0200 Subject: [PATCH] update nbs --- examples/demo_mock_ensemble.ipynb | 52 +++++++++++++++------ examples/demo_mock_ensemble_realistic.ipynb | 42 +++++++++++++++-- 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/examples/demo_mock_ensemble.ipynb b/examples/demo_mock_ensemble.ipynb index 84354b111..2eb741e1a 100644 --- a/examples/demo_mock_ensemble.ipynb +++ b/examples/demo_mock_ensemble.ipynb @@ -307,16 +307,6 @@ " )" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "9de6b261-f1aa-4b43-941b-d415462fec95", - "metadata": {}, - "outputs": [], - "source": [ - "cluster.profile" - ] - }, { "cell_type": "code", "execution_count": null, @@ -336,6 +326,42 @@ " )" ] }, + { + "cell_type": "markdown", + "id": "1e699a03", + "metadata": {}, + "source": [ + "The individual cluster data and profiles are stored at the `.data` table of the `ClusterEnsemble`:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "598f9e8a", + "metadata": {}, + "outputs": [], + "source": [ + "clusterensemble.data[:3]" + ] + }, + { + "cell_type": "markdown", + "id": "9429d37f", + "metadata": {}, + "source": [ + "The edges of the radial bins, their units, and the cosmology are stored on the metadata of this table:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d1e5e841", + "metadata": {}, + "outputs": [], + "source": [ + "clusterensemble.data.meta" + ] + }, { "cell_type": "markdown", "id": "99e3fe18", @@ -618,9 +644,9 @@ ], "metadata": { "kernelspec": { - "display_name": "wrk", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "wrk" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -632,7 +658,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.9" + "version": "3.10.8" } }, "nbformat": 4, diff --git a/examples/demo_mock_ensemble_realistic.ipynb b/examples/demo_mock_ensemble_realistic.ipynb index bb0f9147f..422de3f85 100644 --- a/examples/demo_mock_ensemble_realistic.ipynb +++ b/examples/demo_mock_ensemble_realistic.ipynb @@ -903,6 +903,42 @@ " )" ] }, + { + "cell_type": "markdown", + "id": "31c5e0a3", + "metadata": {}, + "source": [ + "The individual cluster data and profiles are stored at the `.data` table of the `ClusterEnsemble`:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "82600274", + "metadata": {}, + "outputs": [], + "source": [ + "clusterensemble.data[:3]" + ] + }, + { + "cell_type": "markdown", + "id": "f5a30238", + "metadata": {}, + "source": [ + "The edges of the radial bins, their units, and the cosmology are stored on the metadata of this table:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e4293187", + "metadata": {}, + "outputs": [], + "source": [ + "clusterensemble.data.meta" + ] + }, { "cell_type": "markdown", "id": "9091de7c", @@ -1179,9 +1215,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3.11", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "python3.11" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -1193,7 +1229,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.10.8" } }, "nbformat": 4,