Skip to content

Commit

Permalink
improve boundary conditions 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mieskolainen committed Oct 28, 2024
1 parent ed9e5d4 commit f12504a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icefit/icepeak.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def analyze_1D_fit(hist, param: dict, techno: dict, fitfunc,

counts = d['counts']
errors = d['errors']
bin_edges = d['bin_edges']
#bin_edges = d['bin_edges']
cbins = d['bin_center']
range_mask = d['range_mask']
fitbin_mask = d['fitbin_mask']
Expand All @@ -829,7 +829,7 @@ def analyze_1D_fit(hist, param: dict, techno: dict, fitfunc,

# Samples on x-axis between [fit central value, ..., last central value]
# ** This should be consistent with fitfunc trapz normalization **
x = np.linspace(np.min(cbins[fitbin_mask]), np.max(cbins[fitbin_mask]), int(nsamples))
x = np.linspace(np.min(cbins[range_mask]), np.max(cbins[range_mask]), int(nsamples))

# Loop over function components
y = {}
Expand Down

0 comments on commit f12504a

Please sign in to comment.