mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-11-29 11:51:14 +00:00
Added convenience function for unindexed copy of data
This commit is contained in:
parent
a84ac0dac1
commit
bef03c961c
@ -60,6 +60,10 @@ class OrderWrapper(object):
|
||||
"""
|
||||
return self.order[index]
|
||||
|
||||
@property
|
||||
def unindexed(self):
|
||||
return self.np_data[self.order]
|
||||
|
||||
def tostring(self):
|
||||
return self.np_data[self.order].tostring()
|
||||
|
||||
@ -118,6 +122,12 @@ class SegmentData(object):
|
||||
def get_style(self):
|
||||
return self.style
|
||||
|
||||
@property
|
||||
def unindexed_view(self):
|
||||
if self.is_indexed:
|
||||
return self.data.unindexed
|
||||
return self.data
|
||||
|
||||
def byte_bounds_offset(self):
|
||||
"""Return start and end offsets of this segment's data into the
|
||||
base array's data.
|
||||
|
Loading…
Reference in New Issue
Block a user