98 units: str =
"arcmin",
101 if units != self.config.treecorr.sep_units:
103 "units from ComputeExPsfConfig and"
104 "ComputeExPsfTask are not the same (%s != %s)"
105 % ((units, self.config.treecorr.sep_units))
115 cat1 = treecorr.Catalog(k=de1, **kwargs_cat)
116 cat2 = treecorr.Catalog(k=de2, **kwargs_cat)
118 config_kk = self.config.treecorr.toDict()
120 kk = treecorr.KKCorrelation(config_kk)
123 kk_E1 = copy.deepcopy(kk.xi[0])
125 kk_E2 = copy.deepcopy(kk.xi[0])
126 kk.process(cat1, cat2)
127 kk_Ex = copy.deepcopy(kk.xi[0])
129 return pipeBase.Struct(metric_E1=kk_E1, metric_E2=kk_E2, metric_Ex=kk_Ex)