astrodatadownloader: fix syntax warning
This commit is contained in:
@@ -78,9 +78,9 @@ def fitsFilenameFilterFunc(table, key_colnames):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def downloadStarProducts(obs_wanted, keplerCadences, k2Cadences):
|
def downloadStarProducts(obs_wanted, keplerCadences, k2Cadences):
|
||||||
if(len(keplerCadences) is not 2):
|
if(len(keplerCadences) != 2):
|
||||||
raise Exception("keplerCadences needs to have length 2")
|
raise Exception("keplerCadences needs to have length 2")
|
||||||
if(len(k2Cadences) is not 2):
|
if(len(k2Cadences) != 2):
|
||||||
raise Exception("k2Cadences need to have length 2")
|
raise Exception("k2Cadences need to have length 2")
|
||||||
|
|
||||||
dataProducts = Observations.get_product_list(obs_wanted)
|
dataProducts = Observations.get_product_list(obs_wanted)
|
||||||
|
|||||||
Reference in New Issue
Block a user