Skip to content

Commit

Permalink
Minor change on unittest of line_background_estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyoneda committed Oct 25, 2024
1 parent c525f13 commit c940cfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def bkg_model(x, a, b):
bkg_model_histogram = instance.generate_bkg_model_histogram(source_range, [background_region])

### check sum
assert np.sum(bkg_model_histogram) == 41.61181341324655
assert np.isclose(np.sum(bkg_model_histogram), 41.61181341324655, atol = 1e-5) == True

## Case 2: a single extracting region broader than the actual bin width
background_region = (1119.0, 1651.0) * u.keV
Expand Down

0 comments on commit c940cfc

Please sign in to comment.