def __new__(cls, data, bins, unit=None,
                f0=None, df=None, frequencies=None,
                name=None, channel=None, epoch=None, **kwargs):
        """Generate a new SpectralVariance histogram
        """
        # parse x-axis params
        if f0 is not None:
            kwargs['x0'] = f0
        if df is not None:
            kwargs['dx'] = df
        if frequencies is not None:
            kwargs['xindex'] = frequencies

        # generate SpectralVariance using the Series constructor
        new = super(Array2D, cls).__new__(cls, data, unit=unit, name=name,
                                          channel=channel, epoch=epoch,
                                          **kwargs)

        # set bins
        new.bins = bins

        return new
def __new__ ( cls , data , bins , unit = None , f0 = None , df = None , frequencies = None , name = None , channel = None , epoch = None , ** kwargs ) : if f0 is not None : kwargs [ 'x0' ] = f0 if df is not None : kwargs [ 'dx' ] = df if frequencies is not None : kwargs [ 'xindex' ] = frequencies new = super ( Array2D , cls ) . __new__ ( cls , data , unit = unit , name = name , channel = channel , epoch = epoch , ** kwargs ) new . bins = bins return new
Generate a new SpectralVariance histogram