:orphan: :py:mod:`cddm._sim_nb` ====================== .. py:module:: cddm._sim_nb .. autoapi-nested-parse:: Numba functions for sim module Module Contents --------------- .. py:function:: mirror(x, x0, x1) transforms coordinate x by flooring in the interval of [x0,x1] It performs x0 + (x-x0)%(x1-x0) .. py:function:: numba_seed(value) Seed for numba random generator .. py:function:: make_step(x, scale, velocity) Performs random particle step from a given initial position x. .. py:function:: psf_gauss(x, x0, y, y0, sigma, intensity) Gaussian point-spread function. This is used to calculate pixel value for a given pixel coordinate x,y and particle position x0,y0. .. py:function:: draw_points(im, points, intensity) Draws pixels to image from a given points array .. py:function:: adc_8bit(frame, scale, black_level) Converts raw signal to unsigned int using 8bit conversion .. py:function:: adc_10bit(frame, scale, black_level) Converts raw signal to unsigned int using 10bit conversion .. py:function:: adc_12bit(frame, scale, black_level) Converts raw signal to unsigned int using 12bit conversion .. py:function:: adc_14bit(frame, scale, black_level) Converts raw signal to unsigned int using 14bit conversion .. py:function:: adc_16bit(frame, scale, black_level) Converts raw signal to unsigned int using 16bit conversion .. py:function:: draw_psf(im, points, intensity, sigma) Draws psf to image from a given points array