Skip to content

Commit

Permalink
Added property to return iris Cube from HoloCube if available
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 22, 2016
1 parent 1fe4158 commit 8af11c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions holocube/element/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ class HoloCube(Table):

group = param.String(default='HoloCube')

@property
def cube(self):
" Returns the underlying iris Cube if available. "
if issubclass(self.interface, CubeConversion):
return self.data
else:
return None

@property
def to(self):
"""
Expand Down

0 comments on commit 8af11c0

Please sign in to comment.