File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -427,17 +427,19 @@ def get_product_list_async(self, observations):
427
427
-------
428
428
response : list of `~requests.Response`
429
429
"""
430
- if len (observations ) == 0 or not observations ["obsid" ]:
431
- raise InvalidQueryError ("Observation list is empty, no associated products." )
432
430
433
431
# getting the obsid list
434
432
if isinstance (observations , Row ):
435
433
observations = observations ["obsid" ]
436
434
if np .isscalar (observations ):
437
- observations = [observations ]
435
+ observations = np . array ( [observations ])
438
436
if isinstance (observations , Table ):
439
437
observations = observations ['obsid' ]
440
438
439
+ observations = observations [observations != "" ]
440
+ if len (observations ) == 0 :
441
+ raise InvalidQueryError ("Observation list is empty, no associated products." )
442
+
441
443
service = 'Mast.Caom.Products'
442
444
params = {'obsid' : ',' .join (observations )}
443
445
You can’t perform that action at this time.
0 commit comments