Skip to content

Commit 4cf7918

Browse files
author
Satoshi Fukami
committed
shuffle BG events in RA also for the case including astro diffuse
1 parent 63ca455 commit 4cf7918

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

flarestack/data/icecube/northern_tracks/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def simulate_bkg_with_diffuse(
263263
ind = np.searchsorted(p_select, np.sort(rng.uniform(size=n_bkg)), side="right")
264264

265265
sim_bkg = mc[ind]
266+
sim_bkg["ra"] = np.random.uniform(0, 2 * np.pi, size=n_bkg)
266267

267268
# Simulates random times
268269
time_pdf = self.get_time_pdf()

0 commit comments

Comments
 (0)