Пример #1
0
 def setup_method(self):
     """ this is run before each test """
     files = [
         "c12-pg-n13-ls09", "c13-pg-n14-nacr", "n13--c13-wc12",
         "n13-pg-o14-lg06", "n14-pg-o15-im05", "n15-pa-c12-nacr",
         "o14--n14-wc12", "o15--n15-wc12"
     ]
     self.pyn = networks.PythonNetwork(files)
     self.rate = rates.Rate("c13-pg-n14-nacr")
Пример #2
0
    def setup_method(self):
        """ this is run before each test """

        # chapter-1
        self.rate1 = rates.Rate("o15--n15-wc12")

        # chapter-2
        self.rate2 = rates.Rate("t-gn-d-nk06")

        # chapter-3
        self.rate3 = rates.Rate("he6-gnn-he4-cf88")

        # chapter-4
        self.rate4 = rates.Rate("c12-ag-o16-nac2")

        # chapter-5
        self.rate5 = rates.Rate("n15-pa-c12-nacr")

        # chapter-6
        self.rate6 = rates.Rate("he3-he3pp-he4-nacr")

        # chapter-7
        self.rate7 = rates.Rate("li7-tnna-he4-mafo")

        # chapter-8
        self.rate8 = rates.Rate("he4-aag-c12-fy05")

        # chapter-9
        self.rate9 = rates.Rate("he4-pphe3-he3-nacr")

        # chapter-10
        self.rate10 = rates.Rate("he4-npahe3-li7-mafo")

        # chapter-11
        self.rate11 = rates.Rate("b17-nnn-c14-wc12")

        self.n = rates.Nucleus("n")

        self.p = rates.Nucleus("p")
        self.h1 = rates.Nucleus("H1")
        self.d = rates.Nucleus("d")
        self.h3 = rates.Nucleus("H3")

        self.he3 = rates.Nucleus("He3")
        self.he4 = rates.Nucleus("He4")
        self.he6 = rates.Nucleus("He6")

        self.li7 = rates.Nucleus("Li7")

        self.b17 = rates.Nucleus("B17")

        self.c12 = rates.Nucleus("C12")
        self.c14 = rates.Nucleus("C14")

        self.n15 = rates.Nucleus("N15")

        self.o15 = rates.Nucleus("O15")
        self.o16 = rates.Nucleus("O16")

        self.ni56 = rates.Nucleus("Ni56")
        self.u238 = rates.Nucleus("U238")
        self.he4_also = rates.Nucleus("he4")