histogrammar.util.named

histogrammar.util.named(name, fcn)[source]

Create a named, serializable version of fcn (histogrammar.util.UserFcn), which can be a types.FunctionType or a string.

Unlike the histogrammar.util.UserFcn constructor, this function avoids duplication (doubly wrapped objects) and commutes with histogrammar.util.cached and histogrammar.util.serializable (they can be applied in any order).