Skip to content

Commit

Permalink
[SEDONA-420] Make SedonaKepler and SedonaPyDeck optional dependencies (
Browse files Browse the repository at this point in the history
  • Loading branch information
iGN5117 authored and jiayuasu committed Dec 8, 2023
1 parent b090f61 commit e7ac463
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions python/sedona/spark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@
from sedona.register import SedonaRegistrator
from sedona.spark.SedonaContext import SedonaContext
from sedona.raster_utils.SedonaUtils import SedonaUtils
try:
from sedona.maps.SedonaKepler import SedonaKepler
except:
print('Skipping SedonaKepler import, verify if keplergl is installed')
try:
from sedona.maps.SedonaPyDeck import SedonaPyDeck
except:
print('Skipping SedonaPyDeck import, verify if pydeck is installed')
1 change: 0 additions & 1 deletion python/tests/maps/test_sedonapydeck.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.


from sedona.maps.SedonaPyDeck import SedonaPyDeck
from tests.test_base import TestBase
from tests import google_buildings_input_location
Expand Down

0 comments on commit e7ac463

Please sign in to comment.