def __init__(self, size=100, x=None, y=None, cont=None, err=None, array=None):
        """
          Generate an xypoint instance. Can do one of the following three things:
          1: Give a size only. This will generate an xypoint of a given size.
             You should fill it with your data in your own script
          2: Give x,y,cont,and err arrays, as np arrays. This will just
             copy the arrays into the xypoint structure
          3: Give a multidimensional array. For now at least, it must have
             shape = (size,4). That is the shape returned by np.loadtxt
             with unpack=False.
        """
        if array != None:
            self.x = array[:, 0]
            self.y = array[:, 1]
            self.cont = array[:, 2]
            self.err = array[:, 3]
            return

        if x is not None:
            size = x.size
        if y is not None:
            size = y.size
        if cont is not None:
            size = cont.size
        if err is not None:
            size = err.size

        if x is None:
            self.x = np.arange(size, dtype='float64')
        else:
            self.x = x.copy()
        if y is None:
            self.y = np.zeros(size)
        else:
            self.y = y.copy()
        if cont is None:
            self.cont = np.ones(size)
        else:
            self.cont = cont.copy()
        if err is None:
            self.err = np.ones(self.y.size) * 1e9
            self.err[self.y > 0] = np.sqrt(self.y[0 > self.y])
        else:
            self.err = err.copy()
            self.err[self.err <= 0] = 1e9  # Making sure we don't divide by zero
dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/DataStructures.py/xypoint.__init__/swapped operands of `>`