Skip to content

Commit

Permalink
Solve cdsapi issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanAmr3 committed Mar 27, 2024
1 parent 586a110 commit df80032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion earthstat/xES/cds_api_key_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import cdsapi
except ImportError:
print("Please install the cdsapi package using 'pip install cdsapi'")
exit(1)
from pathlib import Path


Expand Down
5 changes: 4 additions & 1 deletion earthstat/xES/download_AgERA5py.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import concurrent.futures
from .cds_param import get_retrieve_params
from .cds_api_key_manager import APIKeyManager
import cdsapi
try:
import cdsapi
except ImportError:
print("Please install the cdsapi package using 'pip install cdsapi'")


class AgERA5Downloader:
Expand Down

0 comments on commit df80032

Please sign in to comment.