number of intervals is limit/delta not limit/delta -1
This commit is contained in:
parent
d8debc3396
commit
4b19b74d11
|
@ -257,7 +257,7 @@ ODF = {}
|
||||||
ODF['limits'] = [math.radians(float(limit)) for limit in fileBinnedODF.readline().split()[0:3]]
|
ODF['limits'] = [math.radians(float(limit)) for limit in fileBinnedODF.readline().split()[0:3]]
|
||||||
ODF['deltas'] = [math.radians(float(delta)) for delta in fileBinnedODF.readline().split()[0:3]]
|
ODF['deltas'] = [math.radians(float(delta)) for delta in fileBinnedODF.readline().split()[0:3]]
|
||||||
#ODF['intervals'] = [int(interval) for interval in fileBinnedODF.readline().split()[0:3]]
|
#ODF['intervals'] = [int(interval) for interval in fileBinnedODF.readline().split()[0:3]]
|
||||||
ODF['intervals'] = [int(round(limit/delta)-1) for limit,delta in zip(ODF['limits'],ODF['deltas'])]
|
ODF['intervals'] = [int(round(limit/delta)) for limit,delta in zip(ODF['limits'],ODF['deltas'])]
|
||||||
nBins = ODF['intervals'][0]*ODF['intervals'][1]*ODF['intervals'][2]
|
nBins = ODF['intervals'][0]*ODF['intervals'][1]*ODF['intervals'][2]
|
||||||
|
|
||||||
print 'Limit: ', [math.degrees(limit) for limit in ODF['limits']]
|
print 'Limit: ', [math.degrees(limit) for limit in ODF['limits']]
|
||||||
|
|
Loading…
Reference in New Issue