mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-28 09:30:05 +00:00
Allow DefaultSegment to be created from a simple numpy array
This commit is contained in:
parent
266bf24d79
commit
956fd58294
@ -414,7 +414,8 @@ class DefaultSegment:
|
|||||||
|
|
||||||
def set_raw(self, rawdata):
|
def set_raw(self, rawdata):
|
||||||
if type(rawdata) != SegmentData:
|
if type(rawdata) != SegmentData:
|
||||||
log.warning(f"data not in SegmentData format {rawdata}, {type(rawdata)}")
|
log.warning(f"data not in SegmentData format: {type(rawdata)}")
|
||||||
|
rawdata = SegmentData(rawdata)
|
||||||
self.rawdata = rawdata
|
self.rawdata = rawdata
|
||||||
self.update_raw_pointers()
|
self.update_raw_pointers()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user