mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-01-16 02:32:52 +00:00
Added create_subset method to DefaultSegment
This commit is contained in:
parent
2b95276029
commit
68debef437
@ -449,6 +449,13 @@ class DefaultSegment(object):
|
||||
self.rawdata.replace_arrays(container.rawdata)
|
||||
self.update_raw_pointers()
|
||||
|
||||
def create_subset(self, new_order, name, verbose_name=""):
|
||||
raw = self.rawdata.get_indexed(new_order)
|
||||
if not verbose_name:
|
||||
verbose_name = name
|
||||
segment = DefaultSegment(raw, name=name, verbose_name=verbose_name)
|
||||
return segment
|
||||
|
||||
def __getstate__(self):
|
||||
"""Custom jsonpickle state save routine
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user