ctaplot/io/dataset.py
def load_any_resource(filename):
    """
    Naive load of any resource text file that present data organised in a table after n lines of comments

    Parameters
    ----------
    filename: path

    Returns
    -------
    data: tuple of `numpy.ndarray`
    """
    sr = 0
    with open(get(filename)) as file:
        n_lines = len(file.readlines())

    while sr < n_lines:
        try:
            data = np.loadtxt(get(filename), skiprows=sr, unpack=True)
            break
        except:
            sr += 1

    return data

    Naive load of any resource text file that present data organised in a table after n lines of comments

    Parameters
    ----------
    filename: path

    Returns
    -------
    data: tuple of `numpy.ndarray`
    
Naive load of any resource text file that present data organised in a table after n lines of comments
Parameters

path

Returns


Naive load of any resource text file that present data organised in a table after n lines of comments Parameters path Returns
def load_any_resource(filename):
    sr = 0
    with open(get(filename)) as file:
        n_lines = len(file.readlines())
    while sr < n_lines:
        try:
            data = np.loadtxt(get(filename), skiprows=sr, unpack=True)
            break
        except:
            sr += 1
    return data
def load_any_resource ( filename ) : sr = 0 with open ( get ( filename ) ) as file : n_lines = len ( file . readlines ( ) ) while sr < n_lines : try : data = np . loadtxt ( get ( filename ) , skiprows = sr , unpack = True ) break except : sr += 1 return data
Naive load of any resource text file that present data organised in a table after n lines of comments
Parameters
Naive load of any resource text file that present data organised in a table after n lines of comments Parameters
"""
    Naive load of any resource text file that present data organised in a table after n lines of comments

    Parameters
    ----------
    filename: path

    Returns
    -------
    data: tuple of `numpy.ndarray`
    """
filename