tessgi / ticgen

Software to estimate the noise level on TESS data and to calculate a TESS magnitude
MIT License
4 stars 1 forks source link

IPython Usage #1

Open exowanderer opened 7 years ago

exowanderer commented 7 years ago

How do we supply magnitudes to ticgen inside ipython?

Example code that did not work

from ticgen import ticgen

print(ticgen(K=11))
print(ticgen({'K':11}))
print(ticgen(Kmag=11))
print(ticgen({'Kmag':11}))
print(ticgen(args={'Kmag':11}))
print(ticgen(args={'--Kmag':11}))

What is the usage for ticgen in ipython?

jradavenport commented 5 years ago

I also think this would be very useful functionality to document better. Here's how I did it:

    import ticgen
    tc = ticgen.Star(Gmag=12, Jmag=13)
    tc.TESS_Mag_GJ()

or you can act on arrays too:

tc = ticgen.Star(Gmag = k_targets['phot_g_mean_mag'], Jmag = k_targets['Jmag'])
Tmag = tc.TESS_Mag_GJ()