In [12]: tpfs = lk.search_targetpixelfile('TIC 150428135', mission='tess', sector=np.arange(14)).download_all()
ValueError Traceback (most recent call last)
in
----> 1 tpfs = lk.search_targetpixelfile('TIC 150428135', mission='tess', sector=np.arange(14)).download_all()
~/opt/anaconda3/lib/python3.8/site-packages/memoization/caching/plain_cache.py in wrapper(*args, **kwargs)
43 with lock:
44 misses += 1
---> 45 result = user_function(*args, **kwargs)
46 cache[key] = values_toolkit.make_cache_value(result, ttl)
47 return result
~/opt/anaconda3/lib/python3.8/site-packages/lightkurve/search.py in search_targetpixelfile(target, radius, cadence, mission, author, quarter, month, campaign, sector, limit)
522 """
523 try:
--> 524 return _search_products(target, radius=radius, filetype="Target Pixel",
525 cadence=cadence, mission=mission,
526 provenance_name=author,
~/opt/anaconda3/lib/python3.8/site-packages/lightkurve/search.py in _search_products(target, radius, filetype, cadence, mission, provenance_name, t_exptime, quarter, month, campaign, sector, limit, **extra_query_criteria)
740 if campaign:
741 mission = "K2"
--> 742 if sector:
743 mission = "TESS"
744 # Ensure mission is a list
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Python 3.8.5:
In [12]: tpfs = lk.search_targetpixelfile('TIC 150428135', mission='tess', sector=np.arange(14)).download_all()
ValueError Traceback (most recent call last)