Box.from_data
- classmethod Box.from_data(data)
Construct a box from its data representation.
- Parameters
data (
dict
) – The data dictionary.- Returns
Box – The constructed box.
Examples
>>> data = {'frame': Frame.worldXY().data, 'xsize': 1.0, 'ysize': 1.0, 'zsize': 1.0} >>> box = Box.from_data(data)