Skip to content

IPython Usage #1

Open
Open

Description

@exowanderer

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?

Activity

  1. jradavenport commented on Mar 14, 2019

    @jradavenport

    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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions