Defined in uproot.writing.identify on line 185.


Converts arbitrary Python object obj to a writable uproot.Model if possible; raises TypeError otherwise.

This function is a series of rules that defines what Python data can or cannot be written to ROOT files. For instance, a 2-tuple of NumPy arrays with the appropriate dimensions is recognized as a histogram, since NumPy’s np.histogram function produces such objects.

This series of rules is expected to grow with time.