Skip to content

Commit

Permalink
Fixed TIC ids overflowing 32bit ints
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher J. Burke committed Feb 24, 2020
1 parent d3ad16c commit 3145e82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -34,9 +34,10 @@ Alternatively, the python module is a single file, tess_stars2px.py, so one can
### AUTHORS
Original programming in C and focal plane geometry solutions by Alan Levine (MIT). This python translation by Christopher J. Burke (MIT). Testing and focal plane geometry refinements by Michael Fausnaugh & Roland Vanderspek (MIT). Testing by Thomas Barclay (NASA Goddard) and Jessica Roberts (Univ. of Colorado). By target name resolving implemented by Brett Morris (UW). Python help from Brigitta Sipocz and Martin Owens. Bug reports by Adina Feinstein (Univ. Chicago).

### VERSION: 0.3.9
### VERSION: 0.4.0

### WHAT'S NEW:
-TIC IDs that overflow 32bit integers is fixed.
-TESS Year 1-3 pointings
-Bug fixes from adding new pointings

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="tess-point",
version="0.3.9",
version="0.4.0",
author="Christopher J. Burke",
author_email="cjburke@mit.edu",
description="Determine pixel coordinates for TESS targets",
Expand Down
9 changes: 5 additions & 4 deletions tess_stars2px.py
Expand Up @@ -19,9 +19,10 @@
Jessica Roberts (Univ. of Colorado)
Sesame queries by Brett Morris (UW)
VERSION: 0.3.9
VERSION: 0.4.0
WHAT'S NEW:
-***FIXED: TIC ids that overflow 32bit integers were not being resolved correctly. Now Fixed by using 64 bit integers
-Missing check on last sector 39 fixed
-Fixed pixel limits in function entry
-Year 3 Sectors 27-39 now provided
Expand Down Expand Up @@ -1087,12 +1088,12 @@ def tess_stars2px_function_entry(starIDs, starRas, starDecs, trySector=None, scI
# Do single coords first
if args.coord is not None and args.name is None:
nTarg = 1
starTics = np.array([0], dtype=np.int32)
starTics = np.array([0], dtype=np.int64)
starRas = np.array([args.coord[0]], dtype=np.float)
starDecs = np.array([args.coord[1]], dtype=np.float)
elif args.coord is None and args.name is not None:
nTarg = 1
starTics = np.array([0], dtype=np.int32)
starTics = np.array([0], dtype=np.int64)

# Name resolve in try except for detecting problem
try:
Expand All @@ -1117,7 +1118,7 @@ def tess_stars2px_function_entry(starIDs, starRas, starDecs, trySector=None, scI
else:
# Must have requested MAST query with TIC ID
# Make a list of TICs using strings
starTics = np.array([args.ticId], dtype=np.int32)
starTics = np.array([args.ticId], dtype=np.int64)
ticStringList = ['{0:d}'.format(x) for x in starTics]
# Setup mast query
request = {'service':'Mast.Catalogs.Filtered.Tic', \
Expand Down

0 comments on commit 3145e82

Please sign in to comment.