Skip to content

Commit

Permalink
Merge pull request #39 from vuillaut/xi
Browse files Browse the repository at this point in the history
consistent definition of angular separation to the source with config
  • Loading branch information
HealthyPear committed Jan 21, 2020
2 parents 27d8827 + ebfa3a9 commit 5566a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protopipe/perf/irf_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ def make_point_spread_function(self, radius=68):
(data_g["reco_energy"] >= info["emin"])
& (data_g["reco_energy"] < info["emax"])
& (data_g["pass_best_cutoff"]),
["xi"],
[self.config['column_definition']['angular_distance_to_the_src']],
]

# Compute PSF
psf[ibin] = np.percentile(sel["xi"], radius)
psf[ibin] = np.percentile(sel[self.config['column_definition']['angular_distance_to_the_src']], radius)

t = Table()
t["ENERG_LO"] = Column(
Expand Down

0 comments on commit 5566a49

Please sign in to comment.