def remove_external(self, fname=None, unit=None):
    '\n        Remove an external file from the model by specifying either the\n        file name or the unit number.\n\n        Parameters\n        ----------\n        fname : str\n            filename of external array\n        unit : int\n            unit number of external array\n\n        '
    plist = []
    if (fname is not None):
        for (i, e) in enumerate(self.external_fnames):
            if (fname in e):
                plist.append(i)
    elif (unit is not None):
        for (i, u) in enumerate(self.external_units):
            if (u == unit):
                plist.append(i)
    else:
        msg = ' either fname or unit must be passed to remove_external()'
        raise Exception(msg)
    j = 0
    for i in plist:
        ipos = (i - j)
        self.external_fnames.pop(ipos)
        self.external_units.pop(ipos)
        self.external_binflag.pop(ipos)
        self.external_output.pop(ipos)
        j += 1
    return
Remove an external file from the model by specifying either the
file name or the unit number.

Parameters
----------
fname : str
    filename of external array
unit : int
    unit number of external array
def remove_external(self, fname=None, unit=None):
    '\n        Remove an external file from the model by specifying either the\n        file name or the unit number.\n\n        Parameters\n        ----------\n        fname : str\n            filename of external array\n        unit : int\n            unit number of external array\n\n        '
    plist = []
    if (fname is not None):
        for (i, e) in enumerate(self.external_fnames):
            if (fname in e):
                plist.append(i)
    elif (unit is not None):
        for (i, u) in enumerate(self.external_units):
            if (u == unit):
                plist.append(i)
    else:
        msg = ' either fname or unit must be passed to remove_external()'
        raise Exception(msg)
    j = 0
    for i in plist:
        ipos = (i - j)
        self.external_fnames.pop(ipos)
        self.external_units.pop(ipos)
        self.external_binflag.pop(ipos)
        self.external_output.pop(ipos)
        j += 1
    return