fix: numpy ordering

Signed-off-by: Dev Singh <dev@devksingh.com>
This commit is contained in:
Dev Singh 2020-09-23 14:36:21 +00:00
parent 11b1db19cd
commit 51e7514fc9

View File

@ -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