Skip to content

Commit

Permalink
FIX: "other" is a "Coordinates" object -- this is passed in from "Coo…
Browse files Browse the repository at this point in the history
…rdinates.issubset".
  • Loading branch information
mpu-creare committed Jul 8, 2020
1 parent 8dc06f4 commit 7e01148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion podpac/core/coordinates/dependent_coordinates.py
Expand Up @@ -510,7 +510,7 @@ def issubset(self, other):
"""

# Check at least that the individual dims are there
if not all([self[dim].issubset(other[dim]) for dim in self.dims]):
if not all([self[dim].issubset(other) for dim in self.dims]):
return False

# NOTE: From this point forward, it gets expensive. We're essentially doing NN interpolation here. Would be nice
Expand Down Expand Up @@ -637,6 +637,7 @@ def issubset(self, other):
True if these coordinates are a subset of the other coordinates.
"""
# short-cuts that don't require checking coordinates
other = other[self.name]
if self.size == 0:
return True

Expand Down

0 comments on commit 7e01148

Please sign in to comment.