mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-12-03 06:52:57 +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]
|
return self.order[index]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unindexed(self):
|
||||||
|
return self.np_data[self.order]
|
||||||
|
|
||||||
def tostring(self):
|
def tostring(self):
|
||||||
return self.np_data[self.order].tostring()
|
return self.np_data[self.order].tostring()
|
||||||
|
|
||||||
@ -118,6 +122,12 @@ class SegmentData(object):
|
|||||||
def get_style(self):
|
def get_style(self):
|
||||||
return self.style
|
return self.style
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unindexed_view(self):
|
||||||
|
if self.is_indexed:
|
||||||
|
return self.data.unindexed
|
||||||
|
return self.data
|
||||||
|
|
||||||
def byte_bounds_offset(self):
|
def byte_bounds_offset(self):
|
||||||
"""Return start and end offsets of this segment's data into the
|
"""Return start and end offsets of this segment's data into the
|
||||||
base array's data.
|
base array's data.
|
||||||
|
Loading…
Reference in New Issue
Block a user