debug for manual input and multiple obs

This commit is contained in:
Thibault Barnouin
2023-05-12 15:34:49 +02:00
parent 3b44b4a8e0
commit 6fe84d8f2d
2 changed files with 12 additions and 6 deletions

View File

@@ -109,7 +109,7 @@ def get_product_list(target=None, proposal_id=None):
else:
print(obs)
a = [np.array(i.split(":"), dtype=str) for i in input("select observations to be downloaded ('1,3,4,5' or '1,3:5' or 'all','*' default to 1)\n>").split(',')]
if a[0]==['']:
if a[0][0]=='':
a = [[1]]
if a[0][0] in ['a','all','*']:
b = np.ones(len(results),dtype=bool)