Skip to content

Commit 76e9455

Browse files
authored
Merge pull request #48 from hughroxburgh/allow-flux-arg
small bug fix for tpf.column and tpf.row
2 parents 5a67756 + 32a9293 commit 76e9455

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎tessreduce/tessreduce.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ def __init__(self,ra=None,dec=None,name=None,obs_list=None,tpf=None,size=90,sect
369369
if not self.sector:
370370
self.sector = 999
371371

372-
self.column = tpf.column
373-
self.row = tpf.row
372+
self.column = self.tpf.column
373+
self.row = self.tpf.row
374374
self.camera = self.tpf.camera
375375
self.ccd = self.tpf.ccd
376376
self.quality = self.tpf.quality
@@ -386,16 +386,16 @@ def __init__(self,ra=None,dec=None,name=None,obs_list=None,tpf=None,size=90,sect
386386

387387
# -- Allow for cube to be given directly, but require MJD, WCS, Sector to be given as well -- #
388388
elif self.flux is not None:
389-
if self.mjd is None:
389+
if self.mjd is None: # obviously need the time
390390
m = 'If flux is given, the MJD must also be given.'
391391
raise ValueError(m)
392-
if self.wcs is None:
392+
if self.wcs is None: # obviously need the WCS
393393
m = 'If flux is given, the WCS must also be given.'
394394
raise ValueError(m)
395-
if self.sector is None:
395+
if self.sector is None: # obviously need the sector
396396
m = 'If flux is given, the sector must also be given.'
397397
raise ValueError(m)
398-
if self._force_ref_ind is None:
398+
if self._force_ref_ind is None: # this is because we dont have the quality flags anymore, so can't get a good ref easily
399399
m = 'If flux is given, the reference frame index must also be given.'
400400
raise ValueError(m)
401401
if self.camera is None:

0 commit comments

Comments
 (0)