File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 35
35
36
36
setup (
37
37
name = 'swiftbat' ,
38
- version = '0.1.2a1 ' ,
38
+ version = '0.1.2a3 ' ,
39
39
packages = ['swiftbat' ],
40
40
package_data = {'' :['catalog' , 'recent_bcttb.fits.gz' ]},
41
41
url = 'https://github.com/lanl/swiftbat_python/' ,
Original file line number Diff line number Diff line change @@ -416,8 +416,8 @@ def detid2xy(detids):
416
416
# and blocks 8-15 are rotated 180 degrees
417
417
bit15 , bit14_11 = np .divmod (block , np .int16 (8 ))
418
418
# 8-15 0-7
419
- y = np .where (bit15 , np .int16 (85 ) - jblock , np .int16 (88 ) + jblock )
420
- x = np .where (bit15 , np .int16 (34 ) - iblock , iblock ) + np .int16 (36 ) * bit14_11
419
+ y = np .where (bit15 , np .int16 (85 ) - jblock - 1 , np .int16 (88 ) + jblock )
420
+ x = np .where (bit15 , np .int16 (34 ) - iblock - 1 , iblock ) + np .int16 (36 ) * bit14_11
421
421
if scalar :
422
422
x = np .int16 (x )
423
423
y = np .int16 (y )
You can’t perform that action at this time.
0 commit comments