Skip to content
Snippets Groups Projects
Commit 7608b4de authored by David Rafferty's avatar David Rafferty
Browse files

Task #3403: Fixed bug in data binning.

parent 30c03a95
No related branches found
No related tags found
No related merge requests found
...@@ -346,7 +346,7 @@ class Op_psf_vary(Op): ...@@ -346,7 +346,7 @@ class Op_psf_vary(Op):
def bindata(self, over,num): #ptpbin,nbin,ptplastbin, same as get_bins in fBDSM. def bindata(self, over,num): #ptpbin,nbin,ptplastbin, same as get_bins in fBDSM.
if num <100: ptpbin=num/5 if num <= 100: ptpbin=num/5
if num > 100: ptpbin=num/10 if num > 100: ptpbin=num/10
if num > 1000: ptpbin=num/20 if num > 1000: ptpbin=num/20
if ptpbin % 2 == 1: ptpbin=ptpbin+1 if ptpbin % 2 == 1: ptpbin=ptpbin+1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment