We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7474d90 commit c4b16edCopy full SHA for c4b16ed
src/biotite/structure/segments.py
@@ -62,13 +62,13 @@ def get_segment_starts(
62
# Convert mask to indices
63
# Add 1, to shift the indices from the end of a segment
64
# to the start of a new segment
65
- chain_starts = np.where(segment_start_mask)[0] + 1
+ segment_starts = np.where(segment_start_mask)[0] + 1
66
67
# The first chain is not included yet -> Insert '[0]'
68
if add_exclusive_stop:
69
- return np.concatenate(([0], chain_starts, [array.array_length()]))
+ return np.concatenate(([0], segment_starts, [array.array_length()]))
70
else:
71
- return np.concatenate(([0], chain_starts))
+ return np.concatenate(([0], segment_starts))
72
73
74
def apply_segment_wise(starts, data, function, axis=None):
0 commit comments