Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 9a7a8e3

Browse files
committed
Update to w_2021_40; more specific warning filters
1 parent cdf092f commit 9a7a8e3

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

02_Intermediate_TAP_Query.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"source": [
8585
"# Ignore warnings\n",
8686
"import warnings\n",
87-
"warnings.filterwarnings('ignore')"
87+
"warnings.simplefilter(\"ignore\", category='UnitsWarning')"
8888
]
8989
},
9090
{
@@ -134,7 +134,7 @@
134134
"outputs": [],
135135
"source": [
136136
"# Import the Rubin TAP service utilities\n",
137-
"from rubin_jupyter_utils.lab.notebook import get_tap_service, retrieve_query\n",
137+
"from lsst.rsp import get_tap_service, retrieve_query\n",
138138
"\n",
139139
"# Get an instance of the TAP service\n",
140140
"service = get_tap_service()\n",

03b_Image_Display_with_Firefly.ipynb

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"<img align=\"left\" src = https://project.lsst.org/sites/default/files/Rubin-O-Logo_0.png width=250 style=\"padding: 10px\"> \n",
88
"<br>\n",
99
"<b>Displaying images using Firefly</b> <br>\n",
10-
"Last verified to run on 2021-08-23 with LSST Science Pipelines release w_2021_33 <br>\n",
10+
"Last verified to run on 2021-10-12 with LSST Science Pipelines release w_2021_40 <br>\n",
1111
"Contact authors: Jeff Carlin <br>\n",
1212
"Target audience: All DP0 delegates. <br>\n",
1313
"Container Size: medium <br>\n",
@@ -66,6 +66,25 @@
6666
"from lsst.daf.butler import Butler"
6767
]
6868
},
69+
{
70+
"cell_type": "markdown",
71+
"metadata": {},
72+
"source": [
73+
"And let the kernel know that we're happy not to have some useful warnings printed during this tutorial."
74+
]
75+
},
76+
{
77+
"cell_type": "code",
78+
"execution_count": null,
79+
"metadata": {},
80+
"outputs": [],
81+
"source": [
82+
"# prevent some helpful but ancillary warning messages from printing\n",
83+
"# during some LSST DM Release calls\n",
84+
"import warnings\n",
85+
"warnings.simplefilter(\"ignore\", category=UserWarning)"
86+
]
87+
},
6988
{
7089
"cell_type": "markdown",
7190
"metadata": {},
@@ -448,13 +467,6 @@
448467
"* [afw.display Doxygen website](http://doxygen.lsst.codes/stack/doxygen/x_masterDoxyDoc/namespacelsst_1_1afw_1_1display.html) \n",
449468
"* [afw.display GitHub website](https://github.com/lsst/afw/tree/master/python/lsst/afw/display) \n"
450469
]
451-
},
452-
{
453-
"cell_type": "code",
454-
"execution_count": null,
455-
"metadata": {},
456-
"outputs": [],
457-
"source": []
458470
}
459471
],
460472
"metadata": {

0 commit comments

Comments
 (0)