From d246b7ca706aca28a3cac31ce6a449dd6c3cb129 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Wed, 13 Apr 2016 15:46:46 -0700 Subject: [PATCH] fixed bug in get_raw_index that wasn't returning int when there was no base array --- atrcopy/segments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atrcopy/segments.py b/atrcopy/segments.py index fa58da6..4322a8d 100644 --- a/atrcopy/segments.py +++ b/atrcopy/segments.py @@ -117,7 +117,7 @@ class SegmentData(object): if self.is_indexed: i = self.order[i] if self.data.base is None: - return i + return int(i) data_start, data_end = np.byte_bounds(self.data) base_start, base_end = np.byte_bounds(self.data.base) return int(data_start - base_start + i)