You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if data_products includes products not found in the cloud.
753
753
"""
754
754
755
-
# Instatiate anonymous cloud access
756
-
self.enable_cloud_dataset()
755
+
ifself._cloud_connection==None:
756
+
raiseRemoteServiceError('Please enable anonymous cloud access by calling `enable_cloud_dataset` method. See MAST Labs documentation for an example: https://mast-labs.stsci.io/#example-data-access-with-astroquery-observations')
For a given data product, returns the associated cloud URI.
764
763
If the product is from a mission that does not support cloud access an
@@ -784,8 +783,8 @@ def get_cloud_uri(self, data_product, include_bucket=True, full_url=False, verbo
784
783
found in the cloud, None is returned.
785
784
"""
786
785
787
-
# Instatiate anonymous cloud access
788
-
self.enable_cloud_dataset(verbose)
786
+
ifself._cloud_connection==None:
787
+
raiseRemoteServiceError('Please enable anonymous cloud access by calling `enable_cloud_dataset` method. See MAST Labs documentation for an example: https://mast-labs.stsci.io/#example-data-access-with-astroquery-observations')
0 commit comments