Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwilby authored and tom-andersson committed Mar 21, 2024
1 parent 7a98619 commit 6f7571c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deepsensor/data/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def get_earthenv_auxiliary_data(
Requires the `rioxarray` package to be installed. e.g. via ``pip install rioxarray``.
See the ``rioxarray`` pages for more installation options:
https://corteva.github.io/rioxarray/stable/installation.html
.. note::
This method downloads the data from EarthEnv to disk, then reads it into memory,
and then deletes the file from disk. This is because EarthEnv does not support
Expand Down Expand Up @@ -508,8 +508,11 @@ def get_earthenv_auxiliary_data(

# Check for rioxarray and raise error if not present
import importlib.util

if importlib.util.find_spec("rioxarray") is None:
raise ImportError("The rioxarray is required to run this function, it was not found. Install with `pip install rioxarray`.")
raise ImportError(
"The rioxarray is required to run this function, it was not found. Install with `pip install rioxarray`."
)

@memory.cache
def _get_auxiliary_data_cached(
Expand Down

0 comments on commit 6f7571c

Please sign in to comment.