-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make async earthranger client optional (#237)
Co-authored-by: Charles Stern <[email protected]>
- Loading branch information
1 parent
1a4ef1e
commit 5511323
Showing
3 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
from ecoscope.io import earthranger, eetools, raster, utils | ||
from ecoscope.io.earthranger import EarthRangerIO | ||
from ecoscope.io.async_earthranger import AsyncEarthRangerIO | ||
from ecoscope.io.utils import download_file | ||
|
||
__all__ = [ | ||
"earthranger", | ||
"EarthRangerIO", | ||
"AsyncEarthRangerIO", | ||
"download_file", | ||
"earthranger_utils", | ||
"eetools", | ||
"raster", | ||
"utils", | ||
] | ||
|
||
try: | ||
from ecoscope.io.async_earthranger import AsyncEarthRangerIO | ||
|
||
__all__ += ["AsyncEarthRangerIO"] | ||
except ImportError: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ classifiers=[ | |
dependencies = [ | ||
"backoff", | ||
"earthengine-api", | ||
"earthranger-client @ git+https://github.com/PADAS/[email protected]", | ||
"earthranger-client", | ||
"geopandas<=0.14.2", | ||
"pyproj", | ||
"rasterio", | ||
|
@@ -50,6 +50,9 @@ analysis = [ | |
"scikit-image", | ||
"scikit-learn", | ||
] | ||
async_earthranger = [ | ||
"earthranger-client @ git+https://github.com/PADAS/[email protected]", | ||
] | ||
mapping = [ | ||
"lonboard @ git+https://github.com/wildlife-dynamics/lonboard@77c56d30a9c2dd96fd863e910bf62952cfa36da8", | ||
"matplotlib", | ||
|