Skip to content

Commit

Permalink
FIX: import warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Shapiro committed Jun 4, 2018
1 parent 436ec09 commit 3b34497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion podpac/core/coordinate/coordinate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import sys
import itertools
from collections import OrderedDict
import warnings

import numpy as np
import traitlets as tl
Expand Down Expand Up @@ -208,7 +209,7 @@ def shape(self):
def delta(self):
""" used in interpolation, to be deprecated """

warnings.warning("delta will be removed before v0.0.1", DeprecationWarning)
warnings.warn("delta will be removed before v0.0.1", DeprecationWarning)

try:
return np.array([c.delta for c in self._coords.values()]).squeeze()
Expand Down

0 comments on commit 3b34497

Please sign in to comment.