histogrammar.util.serializable

histogrammar.util.serializable(fcn)[source]

Create a 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.named (they can be applied in any order).