fix: remove hyperfit as not being impled

Signed-off-by: Dev Singh <dev@devksingh.com>
This commit is contained in:
Dev Singh 2020-09-23 14:40:06 +00:00
parent 41883af218
commit 97480acbc3

View File

@ -9,7 +9,7 @@ __version__ = "0.0.1"
# changelog should be viewed using print(analysis.fits.__changelog__) # changelog should be viewed using print(analysis.fits.__changelog__)
__changelog__ = """changelog: __changelog__ = """changelog:
0.0.1: 0.0.1:
- initial release, add circle fitting with LSC and HyperFit - initial release, add circle fitting with LSC
""" """
__author__ = ( __author__ = (
@ -23,7 +23,7 @@ __all__ = [
import numpy as np import numpy as np
class CircleFit: class CircleFit:
"""Class to fit data to a circle using both the Least Square Circle (LSC) method and the HyperFit method""" """Class to fit data to a circle using the Least Square Circle (LSC) method"""
# For more information on the LSC method, see: # For more information on the LSC method, see:
# http://www.dtcenter.org/sites/default/files/community-code/met/docs/write-ups/circle_fit.pdf # http://www.dtcenter.org/sites/default/files/community-code/met/docs/write-ups/circle_fit.pdf
def __init__(self, x, y, xy=None): def __init__(self, x, y, xy=None):
@ -82,7 +82,4 @@ class CircleFit:
R_1 = self.ournp.mean(Ri_1) R_1 = self.ournp.mean(Ri_1)
# calculate residual error # calculate residual error
residu_1 = self.ournp.sum((Ri_1-R_1)**2) residu_1 = self.ournp.sum((Ri_1-R_1)**2)
return (xc_1, yc_1, R_1, residu_1) return (xc_1, yc_1, R_1, residu_1)
def HyperFit(self):
raise AttributeError("HyperFit not yet implemented")
pass