docs: def set_weights(self, src_filter, num_taxonomies_by_site):
          """
          :returns: the weights of the ruptures in the getter
          """
          weights = []
          for rup in self.rup_array:
              sids = src_filter.close_sids(rup, self.trt, rup['mag'])
              weights.append(num_taxonomies_by_site[sids].sum())
          self.weights = numpy.array(weights)
          self.weight = self.weights.sum()