Skip to content

Commit 85ca797

Browse files
committed
PEP8 style fixes
1 parent 763572e commit 85ca797

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

notebooks/PanSTARRS/PS1_20_query_tutorials/PS1_20q_spatial_binning/PS1_20q_spatial_binning.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
" & (np.abs(TAP_results_q12['dec'] - decg) < 1e-2)\n",
318318
" )[0]\n",
319319
" if len(whm) > 0:\n",
320-
" bincounts[i,j] = TAP_results_q12['pop'][whm[0]]"
320+
" bincounts[i, j] = TAP_results_q12['pop'][whm[0]]"
321321
]
322322
},
323323
{
@@ -334,15 +334,15 @@
334334
"outputs": [],
335335
"source": [
336336
"f, ax = plt.subplots()\n",
337-
"f.set_size_inches(4,4)\n",
337+
"f.set_size_inches(4, 4)\n",
338338
"\n",
339339
"im = ax.imshow(\n",
340340
" bincounts, \n",
341341
" cmap=\"gist_heat\", \n",
342342
" origin=\"lower\", \n",
343343
" interpolation=\"none\",\n",
344344
" norm=PowerNorm(0.5),\n",
345-
" extent=(175,185,-5,5),\n",
345+
" extent=(175, 185, -5, 5),\n",
346346
")\n",
347347
"divider = make_axes_locatable(ax)\n",
348348
"cax = divider.append_axes('right', size='5%', pad=0.05)\n",
@@ -419,7 +419,7 @@
419419
"metadata": {},
420420
"outputs": [],
421421
"source": [
422-
"RightShift12 = np.power(4,12) # Divisor to go from HTM IDs to the 8-deep HTM buckets\n",
422+
"RightShift12 = np.power(4, 12) # Divisor to go from HTM IDs to the 8-deep HTM buckets\n",
423423
"\n",
424424
"adql_query = f\"\"\"\n",
425425
"select (htmid/{RightShift12}) as htm_8, \n",
@@ -508,7 +508,7 @@
508508
"source": [
509509
"# Aitoff-projection scatter plot of HTM-8 bins\n",
510510
"\n",
511-
"f = plt.figure(figsize=(10,5))\n",
511+
"f = plt.figure(figsize=(10, 5))\n",
512512
"ax = f.add_axes([0.05, 0.05, 0.925, 0.9], projection=\"aitoff\")\n",
513513
"cax = f.add_axes([0.985, 0.05, 0.025, 0.9])\n",
514514
"\n",

0 commit comments

Comments
 (0)