mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 01:29:10 +00:00
bug fixes
This commit is contained in:
parent
16603392c9
commit
9be1168e09
@ -984,7 +984,7 @@ class ArrayTest(): # tests on nd arrays independent of basic_stats
|
|||||||
|
|
||||||
a = np.atleast_1d(np.linalg.norm(array))
|
a = np.atleast_1d(np.linalg.norm(array))
|
||||||
a[a==0] = 1
|
a[a==0] = 1
|
||||||
return array / np.expand_dims(a)
|
return array / np.expand_dims(a, -1)
|
||||||
|
|
||||||
def add(self, *args):
|
def add(self, *args):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user