Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions astrosource/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ def calculate_comparison_variation(compFile, photFileArray, fileCount):
def remove_stars_targets(parentPath, compFile, acceptDistance, targetFile, removeTargets):
max_sep=acceptDistance * arcsecond
logger.info("Removing Target Stars from potential Comparisons")
tableFound=False

if not (compFile.shape[0] == 2 and compFile.size ==2):
fileRaDec = SkyCoord(ra=compFile[:,0]*degree, dec=compFile[:,1]*degree)
Expand Down Expand Up @@ -344,9 +343,10 @@ def remove_stars_targets(parentPath, compFile, acceptDistance, targetFile, remov
logger.info(variableResult)
if str(variableResult)=="Empty TableList":
logger.info("VSX Returned an Empty Table.")
varTable=0
else:
variableResult=variableResult['B/vsx/vsx']
tableFound=True
varTable=1
except ConnectionError:
connected=False
logger.info("Connection failed, waiting and trying again")
Expand All @@ -361,7 +361,7 @@ def remove_stars_targets(parentPath, compFile, acceptDistance, targetFile, remov
logger.info("Failed again.")
connected=False

if tableFound:
if varTable==1:
logger.debug(variableResult)

logger.debug(variableResult.keys())
Expand Down