Skip to content

Commit

Permalink
Fix rounding issue in target_collect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Dec 20, 2018
1 parent 55fc105 commit 3374d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fermipy/jobs/target_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _get_enum_bins(configfile):
log_emax = np.log10(emax)
ndec = log_emax - log_emin
binsperdec = config['binning']['binsperdec']
nebins = int(np.ceil(binsperdec * ndec))
nebins = int(np.round(binsperdec * ndec))

return nebins

Expand Down

0 comments on commit 3374d2d

Please sign in to comment.