Skip to content

Commit

Permalink
ADD: Add cartopy as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Aug 30, 2024
1 parent ed39f4d commit 8aad022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 1 addition & 12 deletions pyart/graph/gridmapdisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@

import warnings

import cartopy
import matplotlib.pyplot as plt
import numpy as np

try:
import cartopy # noqa

_CARTOPY_AVAILABLE = True
except ImportError:
_CARTOPY_AVAILABLE = False

try:
import metpy # noqa

Expand Down Expand Up @@ -76,11 +70,6 @@ class GridMapDisplay:

def __init__(self, grid, debug=False):
"""initalize the object."""
# check that cartopy and xarray are available
if not _CARTOPY_AVAILABLE:
raise MissingOptionalDependency(
"Cartopy is required to use GridMapDisplay but is not installed!"
)
if not _XARRAY_AVAILABLE:
raise MissingOptionalDependency(
"Xarray is required to use GridMapDisplay but is not installed!"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ xradar>=0.5.0
pandas
mda-xdrlib
xarray!=0.21.0
cartopy
pint

0 comments on commit 8aad022

Please sign in to comment.