Skip to content

Commit

Permalink
use public viz.data_labels over viz.app.data_collection (#203)
Browse files Browse the repository at this point in the history
* use public viz.data_labels over viz.app.data_collection

requires

* comment change to trigger CI

---------

Co-authored-by: gibsongreen <[email protected]>
  • Loading branch information
kecnry and gibsongreen authored May 21, 2024
1 parent d40c0eb commit 35f5db6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@
"outputs": [],
"source": [
"# List available data\n",
"print(cubeviz.app.data_collection)"
"print(cubeviz.data_labels)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/ifu_optimal/ifu_optimal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/mos_spectroscopy_advanced/MOSspec_advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down

0 comments on commit 35f5db6

Please sign in to comment.