def get_output(self, fname=None, unit=None):
    '\n        Get an output 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 output array\n        unit : int\n            unit number of output array\n\n        '
    if (fname is not None):
        for (i, e) in enumerate(self.output_fnames):
            if (fname in e):
                return self.output_units[i]
        return None
    elif (unit is not None):
        for (i, u) in enumerate(self.output_units):
            if (u == unit):
                return self.output_fnames[i]
        return None
    else:
        msg = ' either fname or unit must be passed to get_output()'
        raise Exception(msg)
    return
Get an output file from the model by specifying either the
file name or the unit number.

Parameters
----------
fname : str
    filename of output array
unit : int
    unit number of output array
def get_output(self, fname=None, unit=None):
    '\n        Get an output 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 output array\n        unit : int\n            unit number of output array\n\n        '
    if (fname is not None):
        for (i, e) in enumerate(self.output_fnames):
            if (fname in e):
                return self.output_units[i]
        return None
    elif (unit is not None):
        for (i, u) in enumerate(self.output_units):
            if (u == unit):
                return self.output_fnames[i]
        return None
    else:
        msg = ' either fname or unit must be passed to get_output()'
        raise Exception(msg)
    return