Skip to content

Commit c4b16ed

Browse files
committed
Fix variable name
1 parent 7474d90 commit c4b16ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/biotite/structure/segments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ def get_segment_starts(
6262
# Convert mask to indices
6363
# Add 1, to shift the indices from the end of a segment
6464
# to the start of a new segment
65-
chain_starts = np.where(segment_start_mask)[0] + 1
65+
segment_starts = np.where(segment_start_mask)[0] + 1
6666

6767
# The first chain is not included yet -> Insert '[0]'
6868
if add_exclusive_stop:
69-
return np.concatenate(([0], chain_starts, [array.array_length()]))
69+
return np.concatenate(([0], segment_starts, [array.array_length()]))
7070
else:
71-
return np.concatenate(([0], chain_starts))
71+
return np.concatenate(([0], segment_starts))
7272

7373

7474
def apply_segment_wise(starts, data, function, axis=None):

0 commit comments

Comments
 (0)