def get_output_attribute(self, fname=None, unit=None, attr=None):
    '\n        Get a attribute for an output file from the model by specifying either\n        the 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        '
    idx = None
    if (fname is not None):
        for (i, e) in enumerate(self.output_fnames):
            if (fname in e):
                idx = i
                break
        return None
    elif (unit is not None):
        for (i, u) in enumerate(self.output_units):
            if (u == unit):
                idx = i
                break
    else:
        raise Exception(' either fname or unit must be passed to set_output_attribute()')
    v = None
    if (attr is not None):
        if (idx is not None):
            if (attr == 'binflag'):
                v = self.output_binflag[idx]
            elif (attr == 'fname'):
                v = self.output_fnames[idx]
            elif (attr == 'unit'):
                v = self.output_units[idx]
    return v
Get a attribute for 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_attribute(self, fname=None, unit=None, attr=None):
    '\n        Get a attribute for an output file from the model by specifying either\n        the 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        '
    idx = None
    if (fname is not None):
        for (i, e) in enumerate(self.output_fnames):
            if (fname in e):
                idx = i
                break
        return None
    elif (unit is not None):
        for (i, u) in enumerate(self.output_units):
            if (u == unit):
                idx = i
                break
    else:
        raise Exception(' either fname or unit must be passed to set_output_attribute()')
    v = None
    if (attr is not None):
        if (idx is not None):
            if (attr == 'binflag'):
                v = self.output_binflag[idx]
            elif (attr == 'fname'):
                v = self.output_fnames[idx]
            elif (attr == 'unit'):
                v = self.output_units[idx]
    return v