Skip to content

Commit

Permalink
Make things work with older numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill888 committed Nov 18, 2021
1 parent 8407df4 commit 420260c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ _version.py
.env
ows_refactored/
local_cfg/
.mypy_cache/
8 changes: 6 additions & 2 deletions datacube_ows/styles/ramp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
from colour import Color
from matplotlib import pyplot as plt
from matplotlib.colors import LinearSegmentedColormap, to_hex
from numpy.typing import NDArray
from xarray import Dataset

try:
from numpy.typing import NDArray
except ImportError:
NDArray = numpy.ndarray

from datacube_ows.config_utils import CFG_DICT
from datacube_ows.ogc_utils import ConfigException, FunctionWrapper
from datacube_ows.styles.base import StyleDefBase
from datacube_ows.styles.expression import Expression
from xarray import Dataset

_LOG = logging.getLogger(__name__)
matplotlib.use('Agg')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'deepdiff',
'matplotlib',
'pyparsing>=2.2.1,<3', # resolving dependency conflict between matplotlib and packaging
'numpy>=1.21.1',
'numpy',
'scipy',
'Pillow',
'Babel',
Expand Down

0 comments on commit 420260c

Please sign in to comment.