Skip to content

Commit de32507

Browse files
authored
Merge pull request #54 from VERITAS-Observatory/reduce-exclusion-list
fix example; print out max wobble distance
2 parents 3631948 + a4e0cf5 commit de32507

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/reflected_region.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ datasets:
1919
stack: false
2020
geom:
2121
axes:
22-
energy: {min: 0.1 TeV, max: 100 TeV, nbins: 30}
23-
energy_true: {min: 0.05 TeV, max: 100 TeV, nbins: 40}
22+
energy: {min: 0.1 TeV, max: 100 TeV, nbins: 30}
23+
energy_true: {min: 0.05 TeV, max: 100 TeV, nbins: 40}
2424
exclusion_region:
2525
on_radius: 0.5 deg
2626
magnitude_B: 7
@@ -43,7 +43,7 @@ flux_points:
4343
flux: {min: 1.e-15, max: 1.e-9}
4444

4545
light_curve:
46-
energy: {min: 1. TeV, max: 100 TeV}
46+
energy: {min: 0.5 TeV, max: 100 TeV}
4747
time_zone: -7
4848
n_jobs: 4
4949
# time_bin_files:

v2dl5/sky_regions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ def _read_bright_star_catalogue(self, exclusion_region_dict=None, max_wobble_dis
174174
return _exclusion_regions
175175

176176
self._logger.info(
177-
"Reading bright star catalogue from %s", exclusion_region_dict["star_file"]
177+
f"Reading bright star catalogue from {exclusion_region_dict['star_file']}"
178+
f" (max wobble distance: {max_wobble_distance})"
178179
)
179180
star_file = files("v2dl5.data").joinpath("data/" + exclusion_region_dict["star_file"])
180181
hip = fits.open(star_file)
@@ -189,6 +190,7 @@ def _read_bright_star_catalogue(self, exclusion_region_dict=None, max_wobble_dis
189190
)
190191

191192
catalogue = catalogue[catalogue["angular_separation"] < u.Quantity(max_wobble_distance)]
193+
catalogue = catalogue[[row is not None for row in catalogue]]
192194

193195
self._logger.info(
194196
"Number of stars in the catalogue passing cuts on magnitude and FOV: %d", len(catalogue)

0 commit comments

Comments
 (0)