Skip to content

Commit 883edac

Browse files
committed
Merge pull request #59 from khughitt/python3-support
Enable viewing of (most) notebookes with Python 3.x
2 parents 9a15122 + 161ef32 commit 883edac

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

tutorials/FITS-header/FITS-header.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "",
88
"published": true
99
},
10-
"signature": "sha256:8e988975ce1af1a9c3c8dcb6b30fb5345df782023545c3ddcb0cf58c6ebce148"
10+
"signature": "sha256:396649b4c4fd39eacc68f62356450cf0f78c88d5aaded5250eb3c3a8d80e4030"
1111
},
1212
"nbformat": 3,
1313
"nbformat_minor": 0,
@@ -108,8 +108,8 @@
108108
"cell_type": "code",
109109
"collapsed": false,
110110
"input": [
111-
"print type(data)\n",
112-
"print header[\"NAXIS\"]"
111+
"print(type(data))\n",
112+
"print(header[\"NAXIS\"])"
113113
],
114114
"language": "python",
115115
"metadata": {},

tutorials/FITS-images/FITS-images.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "",
88
"published": true
99
},
10-
"signature": "sha256:6730dbab487e985094dbfb0c0ef5cf8308a9c1d0578c38bf873c7ed721a48b67"
10+
"signature": "sha256:9e029d61f0feea4f4d19511b44579e113ef088bc23c9fcc0a05ebcd3093a8821"
1111
},
1212
"nbformat": 3,
1313
"nbformat_minor": 0,
@@ -130,8 +130,8 @@
130130
"cell_type": "code",
131131
"collapsed": false,
132132
"input": [
133-
"print type(image_data)\n",
134-
"print image_data.shape"
133+
"print(type(image_data))\n",
134+
"print(image_data.shape)"
135135
],
136136
"language": "python",
137137
"metadata": {},
@@ -174,8 +174,8 @@
174174
"collapsed": false,
175175
"input": [
176176
"image_data = fits.getdata(image_file)\n",
177-
"print type(image_data)\n",
178-
"print image_data.shape"
177+
"print(type(image_data))\n",
178+
"print(image_data.shape)"
179179
],
180180
"language": "python",
181181
"metadata": {},
@@ -214,10 +214,10 @@
214214
"cell_type": "code",
215215
"collapsed": false,
216216
"input": [
217-
"print 'Min:', np.min(image_data)\n",
218-
"print 'Max:', np.max(image_data)\n",
219-
"print 'Mean:', np.mean(image_data)\n",
220-
"print 'Stdev:', np.std(image_data)"
217+
"print('Min:', np.min(image_data))\n",
218+
"print('Max:', np.max(image_data))\n",
219+
"print('Mean:', np.mean(image_data))\n",
220+
"print('Stdev:', np.std(image_data))"
221221
],
222222
"language": "python",
223223
"metadata": {},
@@ -249,7 +249,7 @@
249249
"cell_type": "code",
250250
"collapsed": false,
251251
"input": [
252-
"print type(image_data.flat)"
252+
"print(type(image_data.flat))"
253253
],
254254
"language": "python",
255255
"metadata": {},

tutorials/FITS-tables/FITS-tables.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "",
88
"published": true
99
},
10-
"signature": "sha256:3460b1474fd246437874a4dc87edfcaf0db23d025a712e58e9b764acfebcca4d"
10+
"signature": "sha256:9e0497be4b203e31064ce5428d54a3390ac6ecfb4de53d0c6262c2a17ecbdf4f"
1111
},
1212
"nbformat": 3,
1313
"nbformat_minor": 0,
@@ -136,7 +136,7 @@
136136
"cell_type": "code",
137137
"collapsed": false,
138138
"input": [
139-
"print pha_list[1].columns"
139+
"print(pha_list[1].columns)"
140140
],
141141
"language": "python",
142142
"metadata": {},

tutorials/Plot-Catalog/plot-catalog.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "",
88
"published": true
99
},
10-
"signature": "sha256:35165ed415be544e141be609b6b3a438c46a455f00808a1cdda35af3042a373f"
10+
"signature": "sha256:a6948119e622634bad34bb4d1b7bcbb59e84cab95025724098127104a63cc42c"
1111
},
1212
"nbformat": 3,
1313
"nbformat_minor": 0,
@@ -250,7 +250,7 @@
250250
"cell_type": "code",
251251
"collapsed": false,
252252
"input": [
253-
"print tbl['RA']"
253+
"print(tbl['RA'])"
254254
],
255255
"language": "python",
256256
"metadata": {},

0 commit comments

Comments
 (0)