Skip to content

Commit 5db2fb9

Browse files
committed
use PIL
1 parent 855b0e0 commit 5db2fb9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

2_WavelengthCalibration.ipynb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"from astropy.modeling.polynomial import Polynomial1D\n",
6464
"from astropy.modeling.models import Gaussian1D, Linear1D\n",
6565
"from astropy.modeling.fitting import LinearLSQFitter\n",
66-
"from IPython.display import Image\n",
6766
"\n",
6867
"# astroquery provides an interface to the NIST atomic line database\n",
6968
"from astroquery.nist import Nist"
@@ -372,7 +371,8 @@
372371
},
373372
"outputs": [],
374373
"source": [
375-
"Image(\"Mercury_spectrum.jpg\")"
374+
"im = PILImage.open(\"Mercury_spectrum.jpg\")\n",
375+
"im"
376376
]
377377
},
378378
{
@@ -381,7 +381,8 @@
381381
"metadata": {},
382382
"outputs": [],
383383
"source": [
384-
"Image(\"Neon_spectrum.jpg\")"
384+
"im = PILImage.open(\"Neon_spectrum.jpg\")\n",
385+
"im"
385386
]
386387
},
387388
{
@@ -390,7 +391,8 @@
390391
"metadata": {},
391392
"outputs": [],
392393
"source": [
393-
"Image(\"Krypton_spectrum.jpg\")"
394+
"im = PILImage.open(\"Krypton_spectrum.jpg\")\n",
395+
"im"
394396
]
395397
},
396398
{
@@ -410,7 +412,8 @@
410412
"metadata": {},
411413
"outputs": [],
412414
"source": [
413-
"Image(\"HG_spectrum.jpg\")"
415+
"im = PILImage.open(\"HG_spectrum.jpg\")\n",
416+
"im"
414417
]
415418
},
416419
{

0 commit comments

Comments
 (0)