<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def params(dirnames, param_func, t_steady=None):
 """Calculate a parameter of a set of model output directories, for a measure function which returns an associated uncertainty. Parameters dirnames: list[str] Model output directory paths. param_func: function Function which takes a :class:`Model` instance as a single argument, and returns the parameter of interest. Returns ------- params: numpy.ndarray Parameters. """

    return np.array([param_func(get_recent_model(d)) for d in dirnames])