Exemplo n.º 1
0
 def sort(self):
     perm = flex.sort_permutation(data=flex.abs(
         flex.double(self.array_of_a())),
                                  reverse=True)
     return sum(flex.select(self.array_of_a(), perm),
                flex.select(self.array_of_b(), perm), self.c(),
                self.use_c())
Exemplo n.º 2
0
 def sort(self):
   perm = flex.sort_permutation(
     data=flex.abs(flex.double(self.array_of_a())),
     reverse=True)
   return sum(
     flex.select(self.array_of_a(), perm),
     flex.select(self.array_of_b(), perm),
     self.c(),
     self.use_c())
Exemplo n.º 3
0
 def __getinitargs__(self):
   return (self.table_x(), self.table_y(), self.table_sigmas(), sum(self))
Exemplo n.º 4
0
 def __getinitargs__(self):
   return (self.table_x(), self.table_y(), self.table_sigmas(), sum(self))