mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-01-30 16:15:55 +00:00
fix: numpy ordering
Signed-off-by: Dev Singh <dev@devksingh.com>
This commit is contained in:
parent
11b1db19cd
commit
51e7514fc9
@ -27,6 +27,7 @@ class CircleFit:
|
||||
# For more information on the LSC method, see:
|
||||
# http://www.dtcenter.org/sites/default/files/community-code/met/docs/write-ups/circle_fit.pdf
|
||||
def __init__(self, x, y, xy=None):
|
||||
self.ournp = np #todo: implement cupy correctly
|
||||
if type(x) == list:
|
||||
x = np.array(x)
|
||||
if type(y) == list:
|
||||
@ -35,7 +36,6 @@ class CircleFit:
|
||||
xy = np.array(xy)
|
||||
if xy != None:
|
||||
self.coords = xy
|
||||
self.ournp = np #todo: implement cupy correctly
|
||||
else:
|
||||
# following block combines x and y into one array if not already done
|
||||
self.coords = self.ournp.vstack(([x.T], [y.T])).T
|
||||
|
Loading…
Reference in New Issue
Block a user