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

Commit d57820e

Browse files
committed
Remove flake8 checks from NB 06.
1 parent 05dae9f commit d57820e

1 file changed

Lines changed: 28 additions & 39 deletions

File tree

06_Comparing_Object_and_Truth_Tables.ipynb

Lines changed: 28 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "1759f339",
5+
"id": "f57b0a8f",
66
"metadata": {},
77
"source": [
88
"<img align=\"left\" src = https://project.lsst.org/sites/default/files/Rubin-O-Logo_0.png width=250 style=\"padding: 10px\"> \n",
@@ -27,18 +27,7 @@
2727
{
2828
"cell_type": "code",
2929
"execution_count": null,
30-
"id": "0fb84c0f",
31-
"metadata": {},
32-
"outputs": [],
33-
"source": [
34-
"%load_ext pycodestyle_magic\n",
35-
"%flake8_on"
36-
]
37-
},
38-
{
39-
"cell_type": "code",
40-
"execution_count": null,
41-
"id": "b8440bfb",
30+
"id": "de133e88",
4231
"metadata": {},
4332
"outputs": [],
4433
"source": [
@@ -49,7 +38,7 @@
4938
},
5039
{
5140
"cell_type": "markdown",
52-
"id": "8f5588ba",
41+
"id": "06717364",
5342
"metadata": {},
5443
"source": [
5544
"### 1. Import Common Python Libraries\n",
@@ -60,7 +49,7 @@
6049
{
6150
"cell_type": "code",
6251
"execution_count": null,
63-
"id": "26b0e88a",
52+
"id": "4249d4a4",
6453
"metadata": {},
6554
"outputs": [],
6655
"source": [
@@ -72,7 +61,7 @@
7261
},
7362
{
7463
"cell_type": "markdown",
75-
"id": "a3d3f763",
64+
"id": "e165773f",
7665
"metadata": {},
7766
"source": [
7867
"To access tables, we will use the TAP service in a similar manner to what we showed in the [Intro to DP0 notebook](https://github.com/rubin-dp0/tutorial-notebooks/blob/main/01_Intro_to_DP0_Notebooks.ipynb), and explored further in THE TAP TUTORIAL NOTEBOOK. See those notebooks for more details."
@@ -81,7 +70,7 @@
8170
{
8271
"cell_type": "code",
8372
"execution_count": null,
84-
"id": "b61e4b80",
73+
"id": "06c690d4",
8574
"metadata": {},
8675
"outputs": [],
8776
"source": [
@@ -98,7 +87,7 @@
9887
},
9988
{
10089
"cell_type": "markdown",
101-
"id": "641ab974",
90+
"id": "b37dee2b",
10291
"metadata": {},
10392
"source": [
10493
"### 2. Loading tables with TAP\n",
@@ -109,7 +98,7 @@
10998
{
11099
"cell_type": "code",
111100
"execution_count": null,
112-
"id": "92702829",
101+
"id": "75f87bac",
113102
"metadata": {},
114103
"outputs": [],
115104
"source": [
@@ -120,7 +109,7 @@
120109
},
121110
{
122111
"cell_type": "markdown",
123-
"id": "139987d9",
112+
"id": "e20bb66c",
124113
"metadata": {},
125114
"source": [
126115
"For our analysis, let's choose the Object table, `dp01_dc2_catalogs.object`, and then we will compare the measurements from this table to the \"truth\" values from `dp01_dc2_catalogs.truth_match`.\n",
@@ -131,7 +120,7 @@
131120
{
132121
"cell_type": "code",
133122
"execution_count": null,
134-
"id": "875932e6",
123+
"id": "4132e8ba",
135124
"metadata": {},
136125
"outputs": [],
137126
"source": [
@@ -146,7 +135,7 @@
146135
{
147136
"cell_type": "code",
148137
"execution_count": null,
149-
"id": "d3b1ca78",
138+
"id": "b1b28378",
150139
"metadata": {},
151140
"outputs": [],
152141
"source": [
@@ -160,7 +149,7 @@
160149
},
161150
{
162151
"cell_type": "markdown",
163-
"id": "44694725",
152+
"id": "cb9b1bc2",
164153
"metadata": {},
165154
"source": [
166155
"For this exploration, we will select a small region of sky around a random RA, Dec position. The following two cells read data centered on (RA, Dec) = (62.0, -37.0) degrees, within a radius of 0.1 degrees, for first the Object table, then the Truth-Match table. Note that we are selecting only a subset of the columns seen in the schema above. You can add or remove columns as you wish.\n",
@@ -171,7 +160,7 @@
171160
{
172161
"cell_type": "code",
173162
"execution_count": null,
174-
"id": "988888bc",
163+
"id": "b83f89c3",
175164
"metadata": {},
176165
"outputs": [],
177166
"source": [
@@ -191,7 +180,7 @@
191180
{
192181
"cell_type": "code",
193182
"execution_count": null,
194-
"id": "28155cc1",
183+
"id": "c1646302",
195184
"metadata": {},
196185
"outputs": [],
197186
"source": [
@@ -211,7 +200,7 @@
211200
},
212201
{
213202
"cell_type": "markdown",
214-
"id": "bed44bb2",
203+
"id": "2525473b",
215204
"metadata": {},
216205
"source": [
217206
"These tables will be much easier to work with as `pandas` \"dataframes\". The query results have convenient methods that we can use to convert them."
@@ -220,7 +209,7 @@
220209
{
221210
"cell_type": "code",
222211
"execution_count": null,
223-
"id": "752c20cf",
212+
"id": "11cc80a5",
224213
"metadata": {},
225214
"outputs": [],
226215
"source": [
@@ -230,7 +219,7 @@
230219
},
231220
{
232221
"cell_type": "markdown",
233-
"id": "8634dd8f",
222+
"id": "0e99f343",
234223
"metadata": {},
235224
"source": [
236225
"### 3. Merge the two tables and compare measurements to truth values\n",
@@ -241,7 +230,7 @@
241230
{
242231
"cell_type": "code",
243232
"execution_count": null,
244-
"id": "1a061e45",
233+
"id": "f4f7429f",
245234
"metadata": {},
246235
"outputs": [],
247236
"source": [
@@ -265,7 +254,7 @@
265254
{
266255
"cell_type": "code",
267256
"execution_count": null,
268-
"id": "04faf39b",
257+
"id": "0c220f27",
269258
"metadata": {},
270259
"outputs": [],
271260
"source": [
@@ -275,7 +264,7 @@
275264
{
276265
"cell_type": "code",
277266
"execution_count": null,
278-
"id": "1f4fe3f1",
267+
"id": "de91c217",
279268
"metadata": {},
280269
"outputs": [],
281270
"source": [
@@ -309,7 +298,7 @@
309298
},
310299
{
311300
"cell_type": "markdown",
312-
"id": "11fb6687",
301+
"id": "b468299e",
313302
"metadata": {},
314303
"source": [
315304
"#### Compare the measurements from the Object table to the \"true\" values for some objects.\n",
@@ -322,7 +311,7 @@
322311
{
323312
"cell_type": "code",
324313
"execution_count": null,
325-
"id": "93a84438",
314+
"id": "f619d477",
326315
"metadata": {},
327316
"outputs": [],
328317
"source": [
@@ -332,7 +321,7 @@
332321
},
333322
{
334323
"cell_type": "markdown",
335-
"id": "c449af21",
324+
"id": "dc470937",
336325
"metadata": {},
337326
"source": [
338327
"Just to confirm that things look like we expect, let's plot a color-magnitude (g vs. g-i) and color-color (r-i vs. g-r) diagram."
@@ -341,7 +330,7 @@
341330
{
342331
"cell_type": "code",
343332
"execution_count": null,
344-
"id": "54c9dbda",
333+
"id": "a7d08625",
345334
"metadata": {},
346335
"outputs": [],
347336
"source": [
@@ -381,7 +370,7 @@
381370
},
382371
{
383372
"cell_type": "markdown",
384-
"id": "70fa4076",
373+
"id": "fe125d6b",
385374
"metadata": {},
386375
"source": [
387376
"Looks pretty normal - the stellar locus in color-color space is right where one expects it to be, and the galaxies dominate at the faint end of the CMD. \n",
@@ -392,7 +381,7 @@
392381
{
393382
"cell_type": "code",
394383
"execution_count": null,
395-
"id": "c5a6dafb",
384+
"id": "caebf863",
396385
"metadata": {},
397386
"outputs": [],
398387
"source": [
@@ -415,7 +404,7 @@
415404
},
416405
{
417406
"cell_type": "markdown",
418-
"id": "ded10557",
407+
"id": "ffc9043d",
419408
"metadata": {},
420409
"source": [
421410
"Well, that looks good -- the ratio of measured to true fluxes is centered on 1.0. It seems like the fluxes are recovered pretty well, on average.\n",
@@ -426,7 +415,7 @@
426415
{
427416
"cell_type": "code",
428417
"execution_count": null,
429-
"id": "b86de3ec",
418+
"id": "72ec6e46",
430419
"metadata": {},
431420
"outputs": [],
432421
"source": []

0 commit comments

Comments
 (0)