def get_package(self, name):
    "\n        Get a package.\n\n        Parameters\n        ----------\n        name : str\n            Name of the package, 'RIV', 'LPF', etc. (case-insensitive).\n\n        Returns\n        -------\n        pp : Package object\n            Package object of type :class:`flopy.pakbase.Package`\n\n        "
    if (not name):
        raise ValueError('invalid package name')
    name = name.upper()
    for pp in self.packagelist:
        if (pp.name[0].upper() == name):
            return pp
    return None
Get a package.

Parameters
----------
name : str
    Name of the package, 'RIV', 'LPF', etc. (case-insensitive).

Returns
-------
pp : Package object
    Package object of type :class:`flopy.pakbase.Package`
def get_package(self, name):
    "\n        Get a package.\n\n        Parameters\n        ----------\n        name : str\n            Name of the package, 'RIV', 'LPF', etc. (case-insensitive).\n\n        Returns\n        -------\n        pp : Package object\n            Package object of type :class:`flopy.pakbase.Package`\n\n        "
    if (not name):
        raise ValueError('invalid package name')
    name = name.upper()
    for pp in self.packagelist:
        if (pp.name[0].upper() == name):
            return pp
    return None