Skip to content

Commit 5977e5a

Browse files
committed
Replace print statement by function
1 parent 25765a8 commit 5977e5a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tutorials/UVES/UVES.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
"# Let's just print the setup on the screen\n",
406406
"# We'll see if it's all the same.\n",
407407
"for f in filelist:\n",
408-
" print read_setup(f)"
408+
" print(read_setup(f))"
409409
],
410410
"language": "python",
411411
"metadata": {},
@@ -525,12 +525,12 @@
525525
"collapsed": false,
526526
"input": [
527527
"v_accr = (2.* G * M_MN_Lup/R_MN_Lup)**0.5 \n",
528-
"print v_accr\n",
528+
"print(v_accr)\n",
529529
"# Maybe astronomers prefer it in the traditional cgs system?\n",
530-
"print v_accr.cgs\n",
530+
"print(v_accr.cgs)\n",
531531
"# Or in some really obscure unit?\n",
532532
"from astropy.units import imperial\n",
533-
"print v_accr.to(imperial / u.hour)"
533+
"print(v_accr.to(imperial / u.hour))"
534534
],
535535
"language": "python",
536536
"metadata": {},
@@ -691,7 +691,7 @@
691691
"cell_type": "code",
692692
"collapsed": false,
693693
"input": [
694-
"print np.log10((G*M_MN_Lup/R_MN_Lup**2)/u.grams)"
694+
"print(np.log10((G*M_MN_Lup/R_MN_Lup**2)/u.grams))"
695695
],
696696
"language": "python",
697697
"metadata": {},
@@ -746,7 +746,7 @@
746746
" w_equiv = w.to(u.km/u.s, equivalencies=w0_equiv)\n",
747747
" return w_equiv\n",
748748
"\n",
749-
"print wave2doppler(waveclosetoHa, 656.489 * u.nm).to(u.km/u.s)"
749+
"print(wave2doppler(waveclosetoHa, 656.489 * u.nm).to(u.km/u.s))"
750750
],
751751
"language": "python",
752752
"metadata": {},
@@ -1007,7 +1007,7 @@
10071007
"input": [
10081008
"ew = fcaII[0,:] - 1.\n",
10091009
"ew = ew[:-1] * np.diff(wcaII.to(u.AA).value)\n",
1010-
"print ew.sum()"
1010+
"print(ew.sum())"
10111011
],
10121012
"language": "python",
10131013
"metadata": {},

0 commit comments

Comments
 (0)