Example #1
0
    def make_simple_count(self, plot=0):
        """ print the numbers of the selected bounds wih no plot """

        print "Applying Existing Mask. To further modify the mask, use set_mask(ranges) and sort()"

        ############### FIXING THIS ###############

        counts_unbound = [
            len(x) for x in self.unbound if isinstance(x, iterable)
        ]
        counts_central = [
            len(x) for x in self.central if isinstance(x, iterable)
        ]
        counts_passing = [
            len(x) for x in self.passing if isinstance(x, iterable)
        ]
        counts_both = [len(x) for x in self.both if isinstance(x, iterable)]

        times = self.compress(self.times, self.mask)

        ps.make_count_curve(times, counts_unbound, counts_central, \
                                     counts_passing, counts_both, plot = plot)

        ps.make_count_curve(times, counts_unbound, counts_central, \
                                     counts_passing, counts_both, plot = plot, total = self.info.n_disk)
Example #2
0
    def make_count_curve(self):
         """ plot number of each type of planetesimal over time """
         # Change this to make plot anyway
         counts_unbound = [len(x) for x in self.unbound if isinstance(x, iterable)]
         counts_central = [len(x) for x in self.central if isinstance(x, iterable)]
         counts_passing = [len(x) for x in self.passing if isinstance(x, iterable)]
         counts_both = [len(x) for x in self.both if isinstance(x, iterable)]

         times = self.compress(self.times, self.mask)
         
         ps.make_count_curve(times, counts_unbound, counts_central, \
                                      counts_passing, counts_both)
         """
    def make_simple_count(self, plot = 0):
         """ print the numbers of the selected bounds wih no plot """

         print "Applying Existing Mask. To further modify the mask, use set_mask(ranges) and sort()"

         ############### FIXING THIS ###############

         counts_unbound = [len(x) for x in self.unbound if isinstance(x, iterable)]
         counts_central = [len(x) for x in self.central if isinstance(x, iterable)]
         counts_passing = [len(x) for x in self.passing if isinstance(x, iterable)]
         counts_both = [len(x) for x in self.both if isinstance(x, iterable)]

         times = self.compress(self.times, self.mask)

         ps.make_count_curve(times, counts_unbound, counts_central, \
                                      counts_passing, counts_both, plot = plot)