def has_package(self, name):
    "\n        Check if package name is in package list.\n\n        Parameters\n        ----------\n        name : str\n            Name of the package, 'DIS', 'BAS6', etc. (case-insensitive).\n\n        Returns\n        -------\n        bool\n            True if package name exists, otherwise False if not found.\n\n        "
    if (not name):
        raise ValueError('invalid package name')
    name = name.upper()
    for p in self.packagelist:
        for pn in p.name:
            if (pn.upper() == name):
                return True
    return False
Check if package name is in package list.

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

Returns
-------
bool
    True if package name exists, otherwise False if not found.
def has_package(self, name):
    "\n        Check if package name is in package list.\n\n        Parameters\n        ----------\n        name : str\n            Name of the package, 'DIS', 'BAS6', etc. (case-insensitive).\n\n        Returns\n        -------\n        bool\n            True if package name exists, otherwise False if not found.\n\n        "
    if (not name):
        raise ValueError('invalid package name')
    name = name.upper()
    for p in self.packagelist:
        for pn in p.name:
            if (pn.upper() == name):
                return True
    return False