Skip to content

Commit 9b2fef3

Browse files
committed
more PEP8
1 parent e925a26 commit 9b2fef3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

notebooks/NIRSpec/msa_metafile/NIRSpec_MOS_MSA_metafile.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
" \"\"\"\n",
171171
" return 1 - x % 2\n",
172172
"\n",
173+
"\n",
173174
"def single_value(x):\n",
174175
" \"\"\"\n",
175176
" Determine whether the input is a single integer or float.\n",
@@ -186,6 +187,7 @@
186187
" \"\"\"\n",
187188
" return isinstance(x, (int, float))\n",
188189
"\n",
190+
"\n",
189191
"def filter_table(full_table, **kwargs):\n",
190192
" \"\"\"\n",
191193
" Filters an Astropy Table based an arbitrary number of input column-value pairs.\n",
@@ -662,13 +664,13 @@
662664
"metadata": {},
663665
"outputs": [],
664666
"source": [
665-
"fig, ax = plt.subplots(figsize=(12,10))\n",
667+
"fig, ax = plt.subplots(figsize=(12, 10))\n",
666668
"cmap = copy.deepcopy(mpl.colormaps['turbo'])\n",
667669
"cmap.colors[0] = 1, 1, 1\n",
668670
"extent = 0.5, nx+0.5, ny+0.5, 0.5 # origin=(1,1); range = 1..nx, 1..ny with +/-0.5 boundary on either side\n",
669671
"im = plt.imshow(msa_image, aspect=nx/ny, interpolation='nearest', cmap=cmap, extent=extent)\n",
670-
"plt.xlim(nx+1,0)\n",
671-
"plt.ylim(ny+1,0)\n",
672+
"plt.xlim(nx+1, 0)\n",
673+
"plt.ylim(ny+1, 0)\n",
672674
"plt.xlabel('shutter row (full MSA)')\n",
673675
"plt.ylabel('shutter column (full MSA)')\n",
674676
"ax.yaxis.tick_right()\n",
@@ -1028,7 +1030,7 @@
10281030
],
10291031
"metadata": {
10301032
"kernelspec": {
1031-
"display_name": "jwst_1.20.2",
1033+
"display_name": "Python 3 (ipykernel)",
10321034
"language": "python",
10331035
"name": "python3"
10341036
},

0 commit comments

Comments
 (0)