create_context#

deeptrack.backend.units.create_context(xpixel=None, ypixel=None, zpixel=None, xscale=None, yscale=None, zscale=None)#

Creates a new context for unit conversions.

If a value is None, the active value is used. If any (xyz)scale value is not none, they are multiplied with the active scale.

Parameters#

xpixel, ypixel, zpixelfloat

The size of pixels in each direction in meters

xscale, yscale, zscaleint

The upscale factor for internal simulations