astrodatadownloader: fix syntax warning

This commit is contained in:
2024-03-06 13:58:59 +01:00
parent 34efb0ffa3
commit 8bcfb36c95
@@ -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)