Ejemplo n.º 1
0
    def g_info(self):
        cprint('g: ', 'yellow', attrs=['bold'], end='\n')

        for k in self.g.keys():
            print("'", k, "'", ': ', to_Hz(self.g[k]), sep='')

        print()
Ejemplo n.º 2
0
    def wa_info(self):
        cprint('wa: ', 'yellow', attrs=['bold'], end='\n')

        for k in range(len(self.wa)):
            print(to_Hz(self.wa[k]), sep='')

        print()
Ejemplo n.º 3
0
    def info(self, title='Cavity:'):
        cprint(title, 'green', attrs=['bold'])

        print()

        self.wc_info()
        self.wa_info()
        self.g_info()
        self.n_atoms_info()
        self.n_levels_info()
Ejemplo n.º 4
0
    def info(self, title="Cavity:"):
        cprint(title, "green")

        print()

        self.wc_info()
Ejemplo n.º 5
0
    def wc_info(self):
        cprint("wc: ", "yellow")

        print(to_Hz(self.wc))

        print()
Ejemplo n.º 6
0
    def n_levels_info(self):
        cprint('n_levels: ', 'yellow', attrs=['bold'], end='')

        print(self.n_levels)

        print()
Ejemplo n.º 7
0
    def n_atoms_info(self):
        cprint(' n_atoms: ', 'yellow', attrs=['bold'], end='')

        print(self.n_atoms)
Ejemplo n.º 8
0
    def g_info(self):
        cprint(' g = ', 'yellow', attrs=['bold'], end='')

        print(to_Hz(self.g))

        print()
Ejemplo n.º 9
0
    def wa_info(self):
        cprint('wa = ', 'yellow', attrs=['bold'], end='')

        print(to_Hz(self.wa))
Ejemplo n.º 10
0
    def wc_info(self):
        cprint('wc = ', 'yellow', attrs=['bold'], end='')

        print(to_Hz(self.wc))
Ejemplo n.º 11
0
    def n_levels_info(self):
        cprint(' n_levels: ', 'yellow', end='')

        print(self.n_levels)

        print()
Ejemplo n.º 12
0
    def n_atoms_info(self):
        cprint(' n_atoms: ', 'yellow', end='')

        print(self.n_atoms)

        print()
Ejemplo n.º 13
0
    def g_info(self):
        cprint(' g: ', 'yellow', end='')

        print(to_Hz(self.g))

        print()
Ejemplo n.º 14
0
    def wa_info(self):
        cprint('wa: ', 'yellow', end='')

        print(to_Hz(self.wa))

        print()
Ejemplo n.º 15
0
    def wc_info(self):
        cprint('wc: ', 'yellow', end='')

        print(to_Hz(self.wc))

        print()