Skip to content

Commit ce8b373

Browse files
committed
corrected spelling mistake
1 parent b2fb048 commit ce8b373

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

experiments/custom/featureextraction.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
https://github.com/SchwarzNeuroconLab/DeepLabStream
66
Licensed under GNU General Public License v3.0
77
8-
Simba Feature extraction functions were provided by Simon Nillson from Golden Lab
8+
Simba Feature extraction functions were provided by Simon Nilsson from Golden Lab
99
Main developer of SiMBA https://github.com/sgoldenlab/simba
1010
and integrated into the SimbaFeatureExtractor
1111
@@ -25,7 +25,7 @@
2525
### EUCLIDIAN DISTANCES IN SINGLE FRAMES
2626
@jit(nopython=True, cache=True)
2727
def EuclidianDistCalc(inArr):
28-
"""provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
28+
"""provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
2929
Mouse_1_nose_to_tail = int(
3030
np.sqrt(
3131
((inArr[-1][4] - inArr[-1][12]) ** 2 + (inArr[-1][5] - inArr[-1][13]) ** 2)
@@ -111,7 +111,7 @@ def EuclidianDistCalc(inArr):
111111
### EUCLIDEAN DISTANCES BETWEEN CENTROIDS IN ROLLING WINDOWS
112112
@jit(nopython=True, cache=True)
113113
def distancesBetweenBps(bpArray, bp):
114-
"""provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
114+
"""provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
115115

116116
frames2Process = bpArray.shape[0]
117117
bps2process = int(bpArray.shape[1] / 2)
@@ -180,7 +180,7 @@ def distancesBetweenBps(bpArray, bp):
180180
### EUCLIDEAN DISTANCES BETWEEN BODY-PARTS WITHIN EACH ANIMALS HULL
181181
@jit(nopython=True, cache=True)
182182
def bpDistancesInHull(animal1arraySplit):
183-
"""provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
183+
"""provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
184184

185185
frames2process = animal1arraySplit.shape[0]
186186
bps2process = animal1arraySplit[1].shape[0]
@@ -209,7 +209,7 @@ def bpDistancesInHull(animal1arraySplit):
209209
### TOTAL MOVEMENT OF ALL ANIMALS IN ROLLING WINDOWS
210210
@jit(nopython=True, cache=True)
211211
def TotalMovementBodyparts(arrayConcat_Animal1, arrayConcat_Animal2):
212-
"""provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
212+
"""provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
213213

214214
frames2process = arrayConcat_Animal2.shape[0]
215215
bps2process = int(arrayConcat_Animal2.shape[1] / 2)
@@ -273,7 +273,7 @@ def TotalMovementBodyparts(arrayConcat_Animal1, arrayConcat_Animal2):
273273
### MOVEMENTS OF INDIVIDUAL BODY-PARTS
274274
@jit(nopython=True, cache=True)
275275
def singleAnimalBpMovements(tail_1, tail_2, center_1, center_2, nose_1, nose_2):
276-
"""provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
276+
"""provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
277277

278278
Tail_base_movement_M1_median_2, Tail_base_movement_M2_median_2 = (
279279
int(np.median(tail_1)),
@@ -339,7 +339,7 @@ def set_input_array_length(self, new_input_array_length):
339339
def extract_features(self, input_array):
340340
"""Takes bp coordinates of length input_list_length and extract features.
341341
:return extracted feature list for input to classifier"
342-
Adapted from code provided by Simon Nillson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
342+
Adapted from code provided by Simon Nilsson from Golden Lab; Main developer of SiMBA https://github.com/sgoldenlab/simba"""
343343

344344
def append2featureList(featureList, measures2add):
345345
featureList.extend(measures2add)

0 commit comments

Comments
 (0)