utils package

Submodules

utils.histogram module

histogram_routine_gpu(lens_model_complete, Numblocks, macroimindx, Nblock, Nresidue, x1corn, x2corn, Lblock, binnum, binmin, binmax, Scale, kwargs_lens, y0, y1, dx)[source]

Obtain F(t) by constructing histogram of time delay function within the given window.

Parameters:
  • lens_model_complete – lens models of the system.

  • Numblocks – number of boxes with Nblock inside.

  • macroimindx

  • Nblock – number of pixels in a box.

  • Nredisude – number of pixels not in a box.

  • x1corn – x-coordinate of the lower side of the window.

  • x2corn – y-coordinate of the left side of the window.

  • Lblock – size of the integration block.

  • binnum – total number of steps.

  • binmin – lower bound of the time integration.

  • binmax – upper bound of the time integration.

  • Scale – Einstein radius of the system.

  • kwargs_lens – arguments of the lens models.

  • y0 – x-coordinate of source position.

  • y1 – y-coordinate of source position.

  • dx – integration step of the window covering lens place.

Returns:

histogram of F(t).

histogram_routine_cpu(lens_model_complete, Numblocks, macroimindx, Nblock, Nresidue, x1corn, x2corn, Lblock, binnum, binmin, binmax, Scale, kwargs_lens, y0, y1, dx)[source]

Obtain F(t) by constructing histogram of time delay function within the given window.

Parameters:
  • lens_model_complete – lens models of the system.

  • Numblocks – number of boxes with Nblock inside.

  • macroimindx

  • Nblock – number of pixels in a box.

  • Nredisude – number of pixels not in a box.

  • x1corn – x-coordinate of the lower side of the window.

  • x2corn – y-coordinate of the left side of the window.

  • Lblock – size of the integration block.

  • binnum – total number of steps.

  • binmin – lower bound of the time integration.

  • binmax – upper bound of the time integration.

  • Scale – Einstein radius of the system.

  • kwargs_lens – arguments of the lens models.

  • y0 – x-coordinate of source position.

  • y1 – y-coordinate of source position.

  • dx – integration step of the window covering lens place.

Returns:

histogram of F(t).

utils.utils module

Module contents