From 35f5db608cb2e3c2fec1c14f8fa2cd1ef5ed5258 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 21 May 2024 12:35:05 -0400 Subject: [PATCH] use public viz.data_labels over viz.app.data_collection (#203) * use public viz.data_labels over viz.app.data_collection requires * comment change to trigger CI --------- Co-authored-by: gibsongreen --- .../IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb | 2 +- notebooks/ifu_optimal/ifu_optimal.ipynb | 2 +- notebooks/mos_spectroscopy_advanced/MOSspec_advanced.ipynb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb b/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb index 9b88174ad..0bda20cc5 100644 --- a/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb +++ b/notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb @@ -541,7 +541,7 @@ "outputs": [], "source": [ "# List available data\n", - "print(cubeviz.app.data_collection)" + "print(cubeviz.data_labels)" ] }, { diff --git a/notebooks/ifu_optimal/ifu_optimal.ipynb b/notebooks/ifu_optimal/ifu_optimal.ipynb index 2af8ef5d3..d1920ca40 100644 --- a/notebooks/ifu_optimal/ifu_optimal.ipynb +++ b/notebooks/ifu_optimal/ifu_optimal.ipynb @@ -300,7 +300,7 @@ "\n", "print(\"\\nSource\")\n", "try:\n", - " spectrum_subset1 = cubeviz.get_data(cubeviz.app.data_collection[0].label,\n", + " spectrum_subset1 = cubeviz.get_data(cubeviz.data_labels[0].label,\n", " spatial_subset=\"Subset 1\", function=\"mean\")\n", " print(spectrum_subset1)\n", "except Exception:\n", diff --git a/notebooks/mos_spectroscopy_advanced/MOSspec_advanced.ipynb b/notebooks/mos_spectroscopy_advanced/MOSspec_advanced.ipynb index 196e9db0e..de40538c3 100644 --- a/notebooks/mos_spectroscopy_advanced/MOSspec_advanced.ipynb +++ b/notebooks/mos_spectroscopy_advanced/MOSspec_advanced.ipynb @@ -470,8 +470,8 @@ "metadata": {}, "outputs": [], "source": [ - "# List what is in the data menu\n", - "[d.label for d in specviz.app.data_collection]" + "# List what's in the data menu\n", + "specviz.data_labels" ] }, {