def __init__(self, simudata, freqs, npixel=500, neighbours=None, axis='z', AR=None, redshift=None):
    self.npl = npixel
    self.ngb = neighbours
    self.ax = axis
    self.ar = AR
    self.red = redshift
    self.pxs = 0
    self.ydata = np.array([])
    self.freqs = np.asarray(freqs)
    if (simudata.data_type == 'snapshot'):
        self._cal_ss(simudata)
    elif (simudata.data_type == 'yt_data'):
        self._cal_yt(simudata)
    else:
        raise ValueError(('Do not accept this data type %sPlease try to use load_data to get the data' % simudata.data_type))
def __init__(self, simudata, freqs, npixel=500, neighbours=None, axis='z', AR=None, redshift=None):
    self.npl = npixel
    self.ngb = neighbours
    self.ax = axis
    self.ar = AR
    self.red = redshift
    self.pxs = 0
    self.ydata = np.array([])
    self.freqs = np.asarray(freqs)
    if (simudata.data_type == 'snapshot'):
        self._cal_ss(simudata)
    elif (simudata.data_type == 'yt_data'):
        self._cal_yt(simudata)
    else:
        raise ValueError(('Do not accept this data type %sPlease try to use load_data to get the data' % simudata.data_type))