File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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" : {},
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" : {},
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" : {},
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" : {},
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" : {},
You can’t perform that action at this time.
0 commit comments