import pickle


def read(fnIn):

    """
    Method to read a FourierICA object from disk

        Parameters
        ----------
        fnIn: filename of the FourierICA object
    """

    # import necessary modules

    filehandler = open(fnIn, "rb")
    fourier_ica_obj = pickle.load(filehandler)
    filehandler.close()

    return fourier_ica_obj