"""Standard test data.

For more information, see

 - http://www.wiley.com/legacy/wileychi/pesarin/material.html

"""

import os as _os

import numpy as np

from .. import data_dir


__all__ = ['load',
           'kenya', ]


def load(f):
    """Load a data file located in the data directory.

    Parameters
    ----------
    f : string
        File name.

    Returns
    -------
    x : ndarray (or Pandas' frame?)
        Data loaded from permute.data_dir.
    """
    return np.recfromcsv(_os.path.join(data_dir, f), delimiter=",")


def botulinum():
    """The

    """
    return load(_os.path.join("npc", "botulinum.csv"))


def chrom17m():
    """The

    """
    return load(_os.path.join("npc", "chrom17m.csv"))


def confocal():
    """The

    """
    return load(_os.path.join("npc", "confocal.csv"))


def germina():
    """The

    """
    return load(_os.path.join("npc", "germina.csv"))


def kenya():
    """The Kenya dataset contains 16 observations and two variables in total.
    It concerns an anthropological study on the "Ol Molo" and "Kamba"
    populations.

    """
    return load(_os.path.join("npc", "kenya.csv"))


def massaro_blair():
    """The

    """
    return load(_os.path.join("npc", "massaro_blair.csv"))


def monachus():
    """The

    """
    return load(_os.path.join("npc", "monachus.csv"))


def mult():
    """The

    """
    return load(_os.path.join("npc", "mult.csv"))


def perch():
    """The

    """
    return load(_os.path.join("npc", "perch.csv"))


def rats():
    """The

    """
    return load(_os.path.join("npc", "rats.csv"))


def setig():
    """The

    """
    return load(_os.path.join("npc", "setig.csv"))


def urology():
    """The

    """
    return load(_os.path.join("npc", "urology.csv"))


def washing_test():
    """The

    """
    return load(_os.path.join("npc", "washing_test.csv"))


def waterfalls():
    """The

    """
    return load(_os.path.join("npc", "waterfalls.csv"))

"""Standard test data.

For more information, see

 - http://www.wiley.com/legacy/wileychi/pesarin/material.html

"""

import os as _os

import numpy as np

from .. import data_dir


__all__ = ['load',
           'kenya', ]


def load(f):
    """Load a data file located in the data directory.

    Parameters
    ----------
    f : string
        File name.

    Returns
    -------
    x : ndarray (or Pandas' frame?)
        Data loaded from permute.data_dir.
    """
    return np.recfromcsv(_os.path.join(data_dir, f), delimiter=",")


def nsgk():
    """The

    """
    return np.loadtxt(_os.path.join(data_dir, "NSGK_clean.txt"),
                      delimiter=',', skiprows=1, dtype=np.int)

def botulinum():
    """The

    """
    return load(_os.path.join("npc", "botulinum.csv"))


def chrom17m():
    """The

    """
    return load(_os.path.join("npc", "chrom17m.csv"))


def confocal():
    """The

    """
    return load(_os.path.join("npc", "confocal.csv"))


def germina():
    """The

    """
    return load(_os.path.join("npc", "germina.csv"))


def kenya():
    """The Kenya dataset contains 16 observations and two variables in total.
    It concerns an anthropological study on the "Ol Molo" and "Kamba"
    populations.

    """
    return load(_os.path.join("npc", "kenya.csv"))


def massaro_blair():
    """The

    """
    return load(_os.path.join("npc", "massaro_blair.csv"))


def monachus():
    """The

    """
    return load(_os.path.join("npc", "monachus.csv"))


def mult():
    """The

    """
    return load(_os.path.join("npc", "mult.csv"))


def perch():
    """The

    """
    return load(_os.path.join("npc", "perch.csv"))


def rats():
    """The

    """
    return load(_os.path.join("npc", "rats.csv"))


def setig():
    """The

    """
    return load(_os.path.join("npc", "setig.csv"))


def urology():
    """The

    """
    return load(_os.path.join("npc", "urology.csv"))


def washing_test():
    """The

    """
    return load(_os.path.join("npc", "washing_test.csv"))


def waterfalls():
    """The

    """
    return load(_os.path.join("npc", "waterfalls.csv"))

add data loader for NSGK