Permalink
Browse files

print_function/division for examples

  • Loading branch information...
mhvk committed Jan 11, 2017
1 parent fb132a6 commit 7099281a3c045ce6f2d48c2e4ec6031908f1e315
@@ -1,4 +1,5 @@
# Licensed under a 3-clause BSD style license - see LICENSE
from __future__ import print_function, division
import Icarus
from Icarus.Utils.import_modules import *
@@ -93,7 +94,3 @@ def FoM(p):
vals = np.r_[fit.data['mag'][0], fit.data['mag'][1]]
ax.set_ylim([vals.max()+(vals.max()-vals.min())*0.1, vals.min()-(vals.max()-vals.min())*0.1])
pylab.show()
@@ -1,4 +1,5 @@
# Licensed under a 3-clause BSD style license - see LICENSE
from __future__ import print_function, division
import Icarus
from Icarus.Utils.import_modules import *
@@ -54,6 +55,3 @@
##### Saving the mock data into the file
np.savetxt('mock_i.txt', np.c_[fit.data['phase'][0], mag[0], fit.data['err'][0]])
np.savetxt('mock_g.txt', np.c_[fit.data['phase'][1], mag[1], fit.data['err'][1]])
@@ -1,4 +1,5 @@
# Licensed under a 3-clause BSD style license - see LICENSE
from __future__ import print_function, division
import Icarus
from Icarus.Utils.import_modules import *
@@ -16,7 +17,7 @@
##### Initializing the Icarus object with Vega's parameters
q = cts.Mearth / cts.Msun
q = cts.Mearth / cts.Msun
omega = 365.25/27 # This is roughly the ratio of the Sun's orbital period over its spin period
filling = 0.03
temp = 5778.
@@ -111,5 +112,3 @@ def Calc_mag(atmo_grid):
print("diff. r: {:.3}".format(sun_r-r))
print("diff. i: {:.3}".format(sun_i-i))
print("diff. z: {:.3}".format(sun_z-z))
@@ -1,4 +1,5 @@
# Licensed under a 3-clause BSD style license - see LICENSE
from __future__ import print_function, division
import Icarus
from Icarus.Utils.import_modules import *
@@ -178,5 +179,3 @@ def Calc_mag(atmo_grid):
print("diff. r: {:.3}".format(mag_r-r))
print("diff. i: {:.3}".format(mag_i-i))
print("diff. z: {:.3}".format(mag_z-z))
@@ -1,4 +1,5 @@
# Licensed under a 3-clause BSD style license - see LICENSE
from __future__ import print_function, division
import Icarus
from Icarus.Utils.import_modules import *
@@ -43,4 +44,3 @@
pylab.figure()
pylab.plot(phs, flux_doppler/flux_regular)

0 comments on commit 7099281

Please sign in to comment.